mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	Merge pull request #189 from stoplightio/master
Fix lack of item index in elementStyle
This commit is contained in:
		@@ -658,6 +658,7 @@ const Split = (idsOption, options = {}) => {
 | 
				
			|||||||
                i === ids.length - 1,
 | 
					                i === ids.length - 1,
 | 
				
			||||||
                gutterAlign,
 | 
					                gutterAlign,
 | 
				
			||||||
            ),
 | 
					            ),
 | 
				
			||||||
 | 
					            i,
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // After the first iteration, and we have a pair object, append it to the
 | 
					        // After the first iteration, and we have a pair object, append it to the
 | 
				
			||||||
@@ -707,8 +708,8 @@ const Split = (idsOption, options = {}) => {
 | 
				
			|||||||
                a.size = trimmed[i - 1]
 | 
					                a.size = trimmed[i - 1]
 | 
				
			||||||
                b.size = newSize
 | 
					                b.size = newSize
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                setElementSize(a.element, a.size, pair[aGutterSize])
 | 
					                setElementSize(a.element, a.size, pair[aGutterSize], a.i)
 | 
				
			||||||
                setElementSize(b.element, b.size, pair[bGutterSize])
 | 
					                setElementSize(b.element, b.size, pair[bGutterSize], b.i)
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user