From 9b8ec529df6f8f638dc91b079a76d6cc157d77c9 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Sat, 19 Oct 2024 21:03:48 -0400 Subject: [PATCH] Opening "Settings" section on load, to avoid Chrome redraw bug. --- htdocs/index.html | 2 +- htdocs/lib/UI.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/htdocs/index.html b/htdocs/index.html index 1a4f2c31..b75b02ba 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -281,7 +281,7 @@
▴ Settings
-
+
diff --git a/htdocs/lib/UI.js b/htdocs/lib/UI.js index 4575dc4e..ea199f61 100644 --- a/htdocs/lib/UI.js +++ b/htdocs/lib/UI.js @@ -179,10 +179,6 @@ UI.toggleSection = function(el, on) { if ((next_el.classList.contains('closed')) && (toggle || on)) { el.innerHTML = el.innerHTML.replace('\u25B4', '\u25BE'); next_el.classList.remove('closed'); - // Force a redraw in Chrome to avoid blank UI when - // opening a section that was closed to begin with - next_el.style.display = 'none'; - next_el.style.display = 'block'; LS.save(el.id, true); } else if (toggle || !on) { el.innerHTML = el.innerHTML.replace('\u25BE', '\u25B4');