mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	handle views without clientSize
This commit is contained in:
		| @@ -348,11 +348,14 @@ const Split = (idsOption, options = {}) => { | |||||||
|  |  | ||||||
|     function innerSize(element) { |     function innerSize(element) { | ||||||
|         // Return nothing if getComputedStyle is not supported (< IE9) |         // Return nothing if getComputedStyle is not supported (< IE9) | ||||||
|  |         // Or if parent element has no layout yet | ||||||
|         if (!getComputedStyle) return null |         if (!getComputedStyle) return null | ||||||
|  |  | ||||||
|         const computedStyle = getComputedStyle(element) |         const computedStyle = getComputedStyle(element) | ||||||
|         let size = element[clientSize] |         let size = element[clientSize] | ||||||
|  |  | ||||||
|  |         if (size === 0) return null | ||||||
|  |  | ||||||
|         if (direction === HORIZONTAL) { |         if (direction === HORIZONTAL) { | ||||||
|             size -= |             size -= | ||||||
|                 parseFloat(computedStyle.paddingLeft) + |                 parseFloat(computedStyle.paddingLeft) + | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user