mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 16:25:01 -04:00
fuse desktop/mobile splitters into one function, update accordingly across files
This commit is contained in:
parent
47c8af7284
commit
bf27cbb641
5 changed files with 32 additions and 76 deletions
|
@ -25,9 +25,6 @@ class WindowWaiter {
|
|||
|
||||
/**
|
||||
* Handler for window resize events.
|
||||
*
|
||||
* Resets adjustable component sizes after 200ms (so that continuous resizing doesn't cause
|
||||
* continuous resetting).
|
||||
*/
|
||||
windowResize() {
|
||||
if (!this.app.isMobileView()) {
|
||||
|
@ -41,8 +38,6 @@ class WindowWaiter {
|
|||
if (document.getElementById("output").classList.contains("maximised-pane")) {
|
||||
this.manager.controls.setPaneMaximised("output", true);
|
||||
}
|
||||
|
||||
debounce(this.app.adjustComponentSizes, 200, "windowResize", this.app, [])();
|
||||
}
|
||||
|
||||
|
||||
|
@ -51,9 +46,9 @@ class WindowWaiter {
|
|||
* Correct the height of #recipe
|
||||
*/
|
||||
onResizeToDesktop() {
|
||||
this.app.setDesktopUI(false);
|
||||
this.app.setDesktopUI();
|
||||
|
||||
// disable app popovers on li.operation elements
|
||||
// enable popovers on li.operation elements
|
||||
$(document.querySelectorAll("li.operation")).popover("enable");
|
||||
|
||||
// if a window is resized past breakpoint while #recipe or #input is maximised, close these maxed panes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue