mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Adjust number of tabs shown when resizing window.
Improve refresh tabs logic. Fix input not being shown when loaded from a URL
This commit is contained in:
parent
722edcc274
commit
85809efcc0
4 changed files with 49 additions and 39 deletions
|
@ -200,6 +200,14 @@ class App {
|
|||
let inputNum = this.manager.input.getActiveTab();
|
||||
if (inputNum === -1) inputNum = 1;
|
||||
this.manager.input.updateInputValue(inputNum, input);
|
||||
|
||||
this.manager.input.inputWorker.postMessage({
|
||||
action: "setInput",
|
||||
data: {
|
||||
inputNum: inputNum,
|
||||
silent: true
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
@ -264,6 +272,8 @@ class App {
|
|||
expandToMin: false,
|
||||
onDrag: function() {
|
||||
this.manager.recipe.adjustWidth();
|
||||
this.manager.input.calcMaxTabs();
|
||||
this.manager.output.calcMaxTabs();
|
||||
}.bind(this)
|
||||
});
|
||||
|
||||
|
@ -536,6 +546,8 @@ class App {
|
|||
this.columnSplitter.setSizes([20, 30, 50]);
|
||||
this.ioSplitter.setSizes([50, 50]);
|
||||
this.manager.recipe.adjustWidth();
|
||||
this.manager.input.calcMaxTabs();
|
||||
this.manager.output.calcMaxTabs();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue