Skip to content

Commit 0dac24e

Browse files
committed
bug - 点击进入某个公告详情,页面一直加载
1 parent 6f33419 commit 0dac24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Coding_iOS/Views/Cell/TweetDetailCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ - (void)webViewDidStartLoad:(UIWebView *)webView{
338338
- (void)webViewDidFinishLoad:(UIWebView *)webView{
339339
[self refreshwebContentView];
340340
[_activityIndicator stopAnimating];
341-
CGFloat scrollHeight = webView.scrollView.contentSize.height;
341+
CGFloat scrollHeight = MAX(webView.scrollView.contentSize.height, _tweet.contentHeight);
342342
if (ABS(scrollHeight - _tweet.contentHeight) > 5) {
343343
webView.scalesPageToFit = YES;
344344
_tweet.contentHeight = scrollHeight;

0 commit comments

Comments
 (0)