prevent collisions

This commit is contained in:
Josh Hawkins 2024-05-10 10:11:59 -05:00
parent 706c360f96
commit ec0bf391bf

View File

@ -363,7 +363,7 @@ export default function DraggableGridLayout({
cols={{ lg: 12, md: 12, sm: 12, xs: 12, xxs: 12 }} cols={{ lg: 12, md: 12, sm: 12, xs: 12, xxs: 12 }}
margin={[marginValue, marginValue]} margin={[marginValue, marginValue]}
containerPadding={[0, isEditMode ? 6 : 3]} containerPadding={[0, isEditMode ? 6 : 3]}
compactType={null} preventCollision={true}
resizeHandles={isEditMode ? ["sw", "nw", "se", "ne"] : []} resizeHandles={isEditMode ? ["sw", "nw", "se", "ne"] : []}
onDragStop={handleLayoutChange} onDragStop={handleLayoutChange}
onResize={handleResize} onResize={handleResize}