[#181] handle checkmarks on window resizing

This commit is contained in:
Robin Scholtes 2023-04-26 23:16:28 +12:00
parent 5e9aa5cd09
commit 5d82ca66f3
3 changed files with 15 additions and 2 deletions

View file

@ -28,9 +28,9 @@ class WindowWaiter {
*/
windowResize() {
if ( window.innerWidth >= this.app.breakpoint ) {
this.app.setDesktopLayout(false); //@TODO: use setDesktopUI() func
this.app.setDesktopUI(false);
} else {
this.app.setMobileLayout(); //@TODO: use mobileUI() if needed
this.app.setMobileUI();
}
debounce(this.app.adjustComponentSizes, 200, "windowResize", this.app, [])();