Skip to content

Commit

Permalink
Resize to correct number of rows
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed May 7, 2024
1 parent 5741c03 commit 4603ff0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ export function GridItemResizer( { clientId, onChange } ) {
);
const rowEnd = getClosestLine(
gridRowLines,
blockElement.offsetTop + boxElement.offsetHeight
blockElement.offsetTop +
( boxElement.offsetHeight + boxElement.offsetTop )
);
onChange( {
columnSpan: Math.max( columnEnd - columnStart, 1 ),
Expand Down

0 comments on commit 4603ff0

Please sign in to comment.