[#181] disable popovers on mobile UI on init and resizing events

This commit is contained in:
Robin Scholtes 2023-04-24 11:32:34 +12:00
parent a252c34968
commit 4a761673c0
6 changed files with 42 additions and 9 deletions

View file

@ -878,6 +878,29 @@ class App {
}
}
}
/**
* Aggregate all the desktop UI functions.
*
* Popovers and desktop layout are set on init, but we also need to
* update the UI correctly on window resizing events
*/
setDesktopUI(minimise){
this.setDesktopLayout(minimise);
this.manager.ops.enableOpsListPopovers();
}
/**
* Aggregate all the mobile UI functions.
*
* Popovers and desktop layout are set on init, but we also need to
* update the UI correctly on window resizing events
*/
setMobileUI(){
this.setMobileLayout();
this.manager.ops.disableOpsListPopovers();
}
}
export default App;