Fix nav arrangement.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Captain ALM 2022-08-17 18:31:23 +01:00
parent c807754bea
commit 7c2e829df7
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -312,8 +312,7 @@ function PerformNavResize() {
} }
} }
if (menc.length > 0) { if (menc.length > 0) {
for (vmeni = 0; vmeni < menc.length; vmeni++) {vmen.removeChild(menc[vmeni]);} for (vmeni = 0; vmeni < menc.length; vmeni++) {men.appendChild(men.removeChild(menc[vmeni]));}
for (vmeni = menc.length - 1; vmeni >= 0; vmeni--) {InsertBefore(men, menc[vmeni]);}
} else { } else {
for (vmeni = 0; vmeni < men.childNodes.length; vmeni++) { for (vmeni = 0; vmeni < men.childNodes.length; vmeni++) {
if (men.childNodes[vmeni].nodeType === Node.ELEMENT_NODE) { if (men.childNodes[vmeni].nodeType === Node.ELEMENT_NODE) {
@ -323,7 +322,8 @@ function PerformNavResize() {
mensz += menaw mensz += menaw
} }
} }
for (vmeni = 0; vmeni < menc.length; vmeni++) {vmen.appendChild(men.removeChild(menc[vmeni]));} for (vmeni = 0; vmeni < menc.length; vmeni++) {men.removeChild(menc[vmeni]);}
for (vmeni = menc.length - 1; vmeni >= 0; vmeni--) {InsertBefore(vmen, menc[vmeni]);}
} }
} }
} }