Skip to content

Commit

Permalink
fix Index page thumbs on iOS 10 Beta & iPhone 6s
Browse files Browse the repository at this point in the history
  • Loading branch information
febbyRG committed Aug 10, 2016
1 parent 67cda9c commit 979dc5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BakerView/BKRIndexViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ - (CGSize)sizeFromContentOf:(UIWebView*)webView {
return [view sizeThatFits:CGSizeZero];
*/

CGFloat contentWidth = [[webView stringByEvaluatingJavaScriptFromString:@"document.width"] floatValue];
CGFloat contentHeight = [[webView stringByEvaluatingJavaScriptFromString:@"document.height"] floatValue];
CGFloat contentWidth = [[webView stringByEvaluatingJavaScriptFromString:@"document.body.scrollWidth"] floatValue];
CGFloat contentHeight = [[webView stringByEvaluatingJavaScriptFromString:@"document.body.scrollHeight"] floatValue];
return CGSizeMake(contentWidth, contentHeight);
}

Expand Down

0 comments on commit 979dc5c

Please sign in to comment.