Skip to content

Items shift to the left/right when resizing in a >12 column grid #1321

@everskies

Description

@everskies

Subject of the issue

I've experimented with using a large number of columns (30+) and stumbled upon a bug where resizing one side (East or West) of the grid resulted in the opposite side jumping to another column (The element grew and shrunk in width at random and often moved one column to left or right)

I've reproduced it on JSFiddle but its harder to trigger the bug than on my own project.

https://jsfiddle.net/wnpe9jza/11/

To reproduce in the fiddle: Drag the left drag handle of any box slowly until you can see the the right corner jump to the next column.

image

Here's a video showing it more clearly:

https://www.youtube.com/watch?v=MsGNMtLXpj4&feature=youtu.be

Your environment

gridstack.js v1.2
Confirmed in Firefox and Chrome

Steps to reproduce

Define a grid with more than ~30 columns and enable resizing

Expected behaviour

The opposite side of the element being resizes should never change position

Actual behaviour

The opposite side of the element often jumps to a different column

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions