mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	fix(mermaid): split on vertical layout
This commit is contained in:
		
							parent
							
								
									4860594758
								
							
						
					
					
						commit
						afa865765b
					
				| @ -164,8 +164,13 @@ export default abstract class AbstractSplitTypeWidget extends TypeWidget { | |||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         let elements = [ this.$firstCol[0], this.$secondCol[0] ]; | ||||||
|  |         if (this.layoutOrientation === "vertical") { | ||||||
|  |             elements.reverse(); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         this.splitInstance?.destroy(); |         this.splitInstance?.destroy(); | ||||||
|         this.splitInstance = Split([ this.$firstCol[0], this.$secondCol[0] ], { |         this.splitInstance = Split(elements, { | ||||||
|             sizes: [ 50, 50 ], |             sizes: [ 50, 50 ], | ||||||
|             direction: this.layoutOrientation, |             direction: this.layoutOrientation, | ||||||
|             gutterSize: DEFAULT_GUTTER_SIZE, |             gutterSize: DEFAULT_GUTTER_SIZE, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran