Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fallback for incorrectly parsed pane widths, #1621
zadam067ca9ab1620
diff --git a/src/public/app/services/split.js b/src/public/app/services/split.jsindex 1151856853..2512eaae31 100644--- a/src/public/app/services/split.js+++ b/src/public/app/services/split.js@@ -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-};\ No newline at end of file+};