mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fallback for incorrectly parsed pane widths, #1621
This commit is contained in:
parent
70708b36ef
commit
067ca9ab16
@ -14,8 +14,17 @@ function setupSplit(left, right) {
|
||||
return;
|
||||
}
|
||||
|
||||
const leftPaneWidth = options.getInt('leftPaneWidth');
|
||||
const rightPaneWidth = options.getInt('rightPaneWidth');
|
||||
let leftPaneWidth = options.getInt('leftPaneWidth');
|
||||
if (!leftPaneWidth || leftPaneWidth < 5) {
|
||||
leftPaneWidth = 5;
|
||||
}
|
||||
|
||||
let rightPaneWidth = options.getInt('rightPaneWidth');
|
||||
if (!rightPaneWidth || rightPaneWidth < 5) {
|
||||
rightPaneWidth = 5;
|
||||
}
|
||||
|
||||
console.log(leftPaneWidth, rightPaneWidth);
|
||||
|
||||
if (left && right) {
|
||||
instance = Split(['#left-pane', '#center-pane', '#right-pane'], {
|
||||
@ -49,4 +58,4 @@ function setupSplit(left, right) {
|
||||
|
||||
export default {
|
||||
setupSplit
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user