Skip to main content

calculateHorizontalResize()

calculateHorizontalResize(state, dy, row, isLastRow): object

Calculates new sizes for a horizontal resize operation.

Parameters​

ParameterTypeDescription
stateGridResizeStateThe current resize state
dynumberDelta Y (vertical movement)
rownumberRow index being resized
isLastRowbooleanWhether this is the last row

Returns​

object

Object with new top and bottom row sizes

bottom​

bottom: number

top​

top: number