Skip to main content

calculateVerticalResize()

calculateVerticalResize(state, dx, col, isLastCol): object

Calculates new sizes for a vertical resize operation.

Parameters

ParameterTypeDescription
stateGridResizeStateThe current resize state
dxnumberDelta X (horizontal movement)
colnumberColumn index being resized
isLastColbooleanWhether this is the last column

Returns

object

Object with new left and right column sizes

left

left: number

right: number