mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +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;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const leftPaneWidth = options.getInt('leftPaneWidth');
 | 
					    let leftPaneWidth = options.getInt('leftPaneWidth');
 | 
				
			||||||
    const rightPaneWidth = options.getInt('rightPaneWidth');
 | 
					    if (!leftPaneWidth || leftPaneWidth < 5) {
 | 
				
			||||||
 | 
					        leftPaneWidth = 5;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    let rightPaneWidth = options.getInt('rightPaneWidth');
 | 
				
			||||||
 | 
					    if (!rightPaneWidth || rightPaneWidth < 5) {
 | 
				
			||||||
 | 
					        rightPaneWidth = 5;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    console.log(leftPaneWidth, rightPaneWidth);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (left && right) {
 | 
					    if (left && right) {
 | 
				
			||||||
        instance = Split(['#left-pane', '#center-pane', '#right-pane'], {
 | 
					        instance = Split(['#left-pane', '#center-pane', '#right-pane'], {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user