Skip to content

Commit

Permalink
Run minimizeWidth at control creation too
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng committed Nov 30, 2024
1 parent 7f1d85a commit 8f5eaac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bundles/org.openhab.ui.basic/web-src/smarthome.js
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,7 @@
buttons.style.width = (width+1) + "px";
};

_t.minimizeWidth();
// Wait until after all the icons are loaded before running minimizeWidth()
window.addEventListener("load", _t.minimizeWidth);
window.addEventListener("resize", _t.minimizeWidth);
Expand Down

0 comments on commit 8f5eaac

Please sign in to comment.