Skip to content

Commit

Permalink
take axis gap into account
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggi committed Oct 17, 2024
1 parent cdb1371 commit 66d6de4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions editor/src/components/canvas/controls/grid-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ export const GridRowColumnResizingControlsComponent = ({
gap={grid.columnGap ?? grid.gap}
padding={grid.padding}
stripedAreaLength={
getStripedAreaLength(grid.gridTemplateRows, grid.gap ?? 0) ?? grid.frame.height
getStripedAreaLength(grid.gridTemplateRows, grid.rowGap ?? grid.gap ?? 0) ??
grid.frame.height
}
alignContent={grid.justifyContent}
justifyContent={grid.alignContent}
Expand All @@ -550,7 +551,8 @@ export const GridRowColumnResizingControlsComponent = ({
gap={grid.rowGap ?? grid.gap}
padding={grid.padding}
stripedAreaLength={
getStripedAreaLength(grid.gridTemplateColumns, grid.gap ?? 0) ?? grid.frame.width
getStripedAreaLength(grid.gridTemplateColumns, grid.columnGap ?? grid.gap ?? 0) ??
grid.frame.width
}
alignContent={grid.alignContent}
justifyContent={grid.justifyContent}
Expand Down

0 comments on commit 66d6de4

Please sign in to comment.