mirror of
https://github.com/gchq/CyberChef
synced 2025-12-22 19:23:40 +00:00
Fixed Split.js issues when resizing to around 1000px wide
This commit is contained in:
@@ -57,7 +57,7 @@ class App {
|
||||
this.populateOperationsList();
|
||||
this.manager.setup();
|
||||
this.manager.output.saveBombe();
|
||||
this.resetLayout();
|
||||
this.adjustComponentSizes();
|
||||
this.setCompileMessage();
|
||||
|
||||
log.debug("App loaded");
|
||||
@@ -295,9 +295,7 @@ class App {
|
||||
gutterSize: 4,
|
||||
expandToMin: true,
|
||||
onDrag: debounce(function() {
|
||||
this.manager.recipe.adjustWidth();
|
||||
this.manager.input.calcMaxTabs();
|
||||
this.manager.output.calcMaxTabs();
|
||||
this.adjustComponentSizes();
|
||||
}, 50, "dragSplitter", this, [])
|
||||
});
|
||||
|
||||
@@ -307,7 +305,7 @@ class App {
|
||||
minSize: minimise ? [0, 0] : [100, 100]
|
||||
});
|
||||
|
||||
this.resetLayout();
|
||||
this.adjustComponentSizes();
|
||||
}
|
||||
|
||||
|
||||
@@ -581,6 +579,13 @@ class App {
|
||||
resetLayout() {
|
||||
this.columnSplitter.setSizes([20, 30, 50]);
|
||||
this.ioSplitter.setSizes([50, 50]);
|
||||
this.adjustComponentSizes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Adjust components to fit their containers.
|
||||
*/
|
||||
adjustComponentSizes() {
|
||||
this.manager.recipe.adjustWidth();
|
||||
this.manager.input.calcMaxTabs();
|
||||
this.manager.output.calcMaxTabs();
|
||||
|
||||
Reference in New Issue
Block a user