Browse Source

Weather: Fixed bug that made the flyout open with a noticeable delay under certain circumstances

pull/886/head
Valentin Radu 4 years ago
parent
commit
8f94546f1e
  1. 4
      ep_weather_host/ep_weather_host.c
  2. 2
      ep_weather_host/ep_weather_provider_google_script.h

4
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.left = 0 - MulDiv(167, dpi, 96);
bounds.top = 0 - MulDiv(178, dpi, 96); bounds.top = 0 - MulDiv(178, dpi, 96);
bounds.right = 5560; bounds.right = MulDiv(1333, dpi, 96);// 5560;
bounds.bottom = 15600; bounds.bottom = MulDiv(600, dpi, 96);// 15600;
} }
if (_this->pCoreWebView2Controller) if (_this->pCoreWebView2Controller)
{ {

2
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\ //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\ 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\ 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\ return ep_result;\n\
}\n\ }\n\
ep_weather_part2();\n\ ep_weather_part2();\n\

Loading…
Cancel
Save