From 8f94546f1e715868b2ac236375194c95882d683f Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sun, 6 Feb 2022 20:12:30 +0200 Subject: [PATCH] Weather: Fixed bug that made the flyout open with a noticeable delay under certain circumstances --- ep_weather_host/ep_weather_host.c | 4 ++-- ep_weather_host/ep_weather_provider_google_script.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ep_weather_host/ep_weather_host.c b/ep_weather_host/ep_weather_host.c index e3244d3..2a49c9c 100644 --- a/ep_weather_host/ep_weather_host.c +++ b/ep_weather_host/ep_weather_host.c @@ -217,8 +217,8 @@ HRESULT STDMETHODCALLTYPE _ep_weather_ReboundBrowser(EPWeather* _this, LONG64 dw { bounds.left = 0 - MulDiv(167, dpi, 96); bounds.top = 0 - MulDiv(178, dpi, 96); - bounds.right = 5560; - bounds.bottom = 15600; + bounds.right = MulDiv(1333, dpi, 96);// 5560; + bounds.bottom = MulDiv(600, dpi, 96);// 15600; } if (_this->pCoreWebView2Controller) { diff --git a/ep_weather_host/ep_weather_provider_google_script.h b/ep_weather_host/ep_weather_provider_google_script.h index 1495ea5..85efed2 100644 --- a/ep_weather_host/ep_weather_provider_google_script.h +++ b/ep_weather_host/ep_weather_provider_google_script.h @@ -103,7 +103,7 @@ let h = document.getElementsByClassName(\"ULSxyf\")[0].offsetHeight;\n\ //if (1) for (let j = 0; j < document.styleSheets.length; j++) changeCSSStyle(j, '.wob_ds', 'background-color', '#303134');\n\ document.getElementsByClassName(\"KFFQ0c\")[0].style.display = 'none';\n\ if (document.getElementsByClassName(\"QS5gu sy4vM\").length > 1) { document.getElementsByClassName(\"QS5gu sy4vM\")[1].click(); return \"run_part_1\"; }\n\ -document.getElementById(\"search\").scrollIntoView(true);\n\ +//document.getElementById(\"search\").scrollIntoView(true);\n\ return ep_result;\n\ }\n\ ep_weather_part2();\n\