angular-gridster2
angular-gridster2 copied to clipboard
Block scroll according to the number of columns
Hey all, I am using gridster2 in my project and I am facing an issue. I displayed a grid, with maximum one column, vertically fixed, where the user can drag and drop to move up and down items. All is working properly but for now, the users can horizontally scroll the grid, it’s not blocking because the grid is blocked to one column, but it’s not really sexy and disturbed a bit the users. Did I miss something to achieve this with an option already included?
I don't think you've missed anything. Sadly there does not seem to be any setting currently that prevents this behavior.
Problem not fixed in 9.3.3. Is there any option or workaround?
you should use this in grid options
disableScrollHorizontal: true, setGridSize: true,