mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
[#181] update window resizing according to updates
This commit is contained in:
parent
2a9080fb3d
commit
455e99dbf6
1 changed files with 5 additions and 2 deletions
|
@ -30,10 +30,13 @@ class WindowWaiter {
|
||||||
debounce(this.app.adjustComponentSizes, 200, "windowResize", this.app, [])();
|
debounce(this.app.adjustComponentSizes, 200, "windowResize", this.app, [])();
|
||||||
|
|
||||||
if ( window.innerWidth >= this.app.breakpoint ) {
|
if ( window.innerWidth >= this.app.breakpoint ) {
|
||||||
this.app.setDesktopUI(false);
|
this.app.setDesktopLayout(false);
|
||||||
} else {
|
} else {
|
||||||
this.app.setMobileUI();
|
this.app.setMobileLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we must repopulate the op lists to handle sortable, draggable, popovers etc.
|
||||||
|
debounce(this.app.populateOperationsList, 200, "windowResize", this.app, [])();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue