mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	ignore minSize if parent is too small
This commit is contained in:
		| @@ -381,6 +381,10 @@ const Split = (idsOption, options = {}) => { | ||||
|             return sizesToTrim | ||||
|         } | ||||
|  | ||||
|         if (minSizes.reduce((a, b) => a + b, 0) > parentSize) { | ||||
|             return sizesToTrim | ||||
|         } | ||||
|  | ||||
|         // Keep track of the excess pixels, the amount of pixels over the desired percentage | ||||
|         // Also keep track of the elements with pixels to spare, to decrease after if needed | ||||
|         let excessPixels = 0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user