Skip to content

Commit

Permalink
perf(UI): adjust Apple Dictionary max showing height
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Aug 13, 2023
1 parent 401e434 commit 7724318
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigat
CGFloat contentHeight = [result doubleValue];
NSLog(@"contentHeight: %.1f", contentHeight);

CGFloat maxHeight = EZLayoutManager.shared.screen.visibleFrame.size.height * 0.45;
CGFloat maxHeight = EZLayoutManager.shared.screen.visibleFrame.size.height * 0.5;

// Fix strange white line
CGFloat webViewHeight = ceil(MIN(maxHeight, contentHeight));
Expand Down

0 comments on commit 7724318

Please sign in to comment.