Skip to content

Commit

Permalink
Fix grid resize handles container width (#6061)
Browse files Browse the repository at this point in the history
Fix for a typo in the container width calculations of
#6058 which would end up
being too large.
  • Loading branch information
ruggi authored Jul 10, 2024
1 parent 9bdeed7 commit ca29d79
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions editor/src/components/canvas/controls/grid-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,7 @@ export const GridResizing = React.memo((props: GridResizingProps) => {
position: 'absolute',
top: props.containingFrame.y - (props.axis === 'column' ? size : 0),
left: props.containingFrame.x - (props.axis === 'row' ? size : 0),
width:
props.axis === 'column'
? props.containingFrame.width
: size + props.containingFrame.width,
width: props.axis === 'column' ? props.containingFrame.width : size,
height: props.axis === 'row' ? props.containingFrame.height : size,
display: 'grid',
gridTemplateColumns:
Expand Down

0 comments on commit ca29d79

Please sign in to comment.