solving linter issue without breaking the fix.

This commit is contained in:
Kendall Werts
2019-08-27 11:54:16 -05:00
parent cc988a303e
commit 3adb333022
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -292,11 +292,11 @@ const Logic = {
document.querySelector(this.getPanelSelector(this._panels[panel])).classList.remove("hide");
window.setTimeout(function () {
//sometimes this executes before the window is there and window.innerWidth returns undefined
const width = window.innerWidth;
if (width > 300) {
const difference = window.innerWidth - document.body.offsetWidth
if (difference > 2) {
//if popup is in the overflow menu, window will be larger than 300px
const root = document.documentElement;
root.style.setProperty("--overflow-size", "125px");
root.style.setProperty("--overflow-size", difference + "px");
root.style.setProperty("--icon-fit", "12");
}
}, 200);