Skip to main content

validateHorizontalResize()

validateHorizontalResize(topValue, bottomValue, dy, minSize): boolean

Validates if a horizontal resize operation is allowed. Prevents resizing if it would make an area smaller than the minimum size. Only blocks movement in the direction that would shrink an area below the minimum.

Parameters

ParameterTypeDescription
topValuenumberNew size for the top row
bottomValuenumberNew size for the bottom row
dynumberDelta Y (vertical movement)
minSizenumberMinimum allowed size in pixels

Returns

boolean

true if the resize is allowed, false otherwise