Skip to content

Commit

Permalink
Merge pull request #15 from jdfranel/master
Browse files Browse the repository at this point in the history
Fixed orientation support
  • Loading branch information
jwilling committed Nov 29, 2012
2 parents 431d656 + 12a7556 commit c429d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions JWFolders/JWFolders.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ - (void)openFolderWithContentView:(UIView *)contentView
contentView.layer.shouldRasterize = self.shouldRasterizeContent;
contentView.layer.rasterizationScale = scale;

CGFloat containerWidth = containerView.frame.size.width;
CGFloat containerHeight = containerView.frame.size.height;
CGFloat containerWidth = containerView.bounds.size.width;
CGFloat containerHeight = containerView.bounds.size.height;

CGRect upperRect = CGRectMake(0, 0, containerWidth, position.y);
CGRect lowerRect = CGRectMake(0, position.y, containerWidth, containerHeight - position.y);
Expand Down
2 changes: 1 addition & 1 deletion JWFolders/UIView+Screenshot.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@implementation UIView (Screenshot)

- (UIImage *)screenshot {
UIGraphicsBeginImageContextWithOptions(self.frame.size, NO, 0.0);
UIGraphicsBeginImageContextWithOptions(self.bounds.size, NO, 0.0);

[self.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
Expand Down

0 comments on commit c429d3c

Please sign in to comment.