You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set cols: {{ <yourbreakpoint>: 10 }}
Currently columns are 80px wide (10% of the layout width)
Set margin: [40,0]
Currently columns are 44px wide (5.5% of the layout width)
(Note. margin must be set)
Expected behavior
When a responsive layout item is clicked, it should not move.
Layout item should only move when it is dragged to another x or y position.
react-grid-layout library version
1.4.3
Operating System Version
Windows 11
Browser
Edge
Additional context
Similar to this bug #1924 When containerPadding is 0 and cols is large enough, clicking on the event will trigger onLayoutChange, causing the layout to move left
Screenshots or Videos
The text was updated successfully, but these errors were encountered:
Describe the bug
When a responsive layout has thin columns which are less than ~6% of the layout width, clicking on a layout item it will move it left (
x
position).margin
column must be set.containerPadding
,margin
,width
, andcols
.Your Example Website or App
https://codesandbox.io/p/sandbox/quirky-artem-tmpkws
Steps to Reproduce the Bug or Issue
width: 800
pixels.cols: {{ <yourbreakpoint>: 10 }}
Currently columns are 80px wide (10% of the layout width)
margin: [40,0]
Currently columns are 44px wide (5.5% of the layout width)
(Note.
margin
must be set)Expected behavior
When a responsive layout item is clicked, it should not move.
Layout item should only move when it is dragged to another
x
ory
position.react-grid-layout library version
1.4.3
Operating System Version
Windows 11
Browser
Edge
Additional context
Similar to this bug #1924 When containerPadding is 0 and cols is large enough, clicking on the event will trigger onLayoutChange, causing the layout to move left
Screenshots or Videos
The text was updated successfully, but these errors were encountered: