From 77243186c92460a633d1e5c1eff6e9089ff3ac21 Mon Sep 17 00:00:00 2001 From: tisfeng Date: Sun, 13 Aug 2023 11:51:07 +0800 Subject: [PATCH] perf(UI): adjust Apple Dictionary max showing height --- .../ViewController/View/WordResultView/EZWordResultView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Easydict/Feature/ViewController/View/WordResultView/EZWordResultView.m b/Easydict/Feature/ViewController/View/WordResultView/EZWordResultView.m index 28eebcad7..490a7be54 100644 --- a/Easydict/Feature/ViewController/View/WordResultView/EZWordResultView.m +++ b/Easydict/Feature/ViewController/View/WordResultView/EZWordResultView.m @@ -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));