Skip to content

Commit

Permalink
Fixing landscape bug adamwulf#15
Browse files Browse the repository at this point in the history
  • Loading branch information
sighmon committed Apr 17, 2018
1 parent aab3c4c commit 595d602
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions JotUI/JotUI/UIScreen+PortraitBounds.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ @implementation UIScreen (PortraitBounds)

- (CGRect)portraitBounds {
CGRect b = [self bounds];
if (b.size.width > b.size.height) {
CGFloat t = b.size.height;
b.size.height = b.size.width;
b.size.width = t;
}
// if (b.size.width > b.size.height) {
// CGFloat t = b.size.height;
// b.size.height = b.size.width;
// b.size.width = t;
// }
return b;
}

Expand Down

0 comments on commit 595d602

Please sign in to comment.