-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Hey,
I'm currently trying to modify the amount of the grid columns.
CSS code and init options have been added.
.grid-stack > .grid-stack-item {
$gridstack-columns: 30;
min-width: (100% / $gridstack-columns);
@for $i from 1 through $gridstack-columns {
&[gs-w='#{$i}'] { width: (100% / $gridstack-columns) * $i; }
&[gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; }
&[gs-min-w='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; }
&[gs-max-w='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; }
}
}
I'm uisng Windows 10 with Chrome. Gridstack.JS version is 3.0.0 HTML5 version.
https://jsfiddle.net/wgk328cn/ (copied my code, but here it works.....)
This is what happens on my website...
https://user-images.githubusercontent.com/10349466/131824591-fac00ecd-2c67-4b61-a008-69e170fd18dd.mp4
Till reaching the 12 column mark it has the normal column spacing...
Going further will result in the expected behaviour resizing according to the coulm amount.
Metadata
Metadata
Assignees
Labels
No labels
