Opening "Settings" section on load, to avoid Chrome redraw bug.
This commit is contained in:
parent
0c7f45d788
commit
9b8ec529df
|
|
@ -281,7 +281,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="openwebrx-section-settings" class="openwebrx-section-divider" onclick="UI.toggleSection(this);">▴ Settings</div>
|
||||
<div class="openwebrx-section closed">
|
||||
<div class="openwebrx-section">
|
||||
<div class="openwebrx-panel-line">
|
||||
<div title="Reset theme" class="openwebrx-button openwebrx-slider-button" onclick="UI.setTheme('default');">
|
||||
<svg viewBox="56 -900 835 835" style="overflow: visible"><use xlink:href="static/gfx/svg-defs.svg#theme-chooser"></use></svg>
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue