Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rounding error when scaling the position up using autoPosition #2358

@rbarrer0

Description

@rbarrer0

https://jsfiddle.net/8eur9joL/

Hello, so I am having trouble getting my grid to adjust the cells when my window resizes to where they belong without changing the size of the cells, just by changing the number of columns.

I have gridstack 8.1.1 on Chrome Version 114.0.5735.110

The fiddle now shows how it fails even when loading it the first time, but the error that focuses me is when you change the tab size.
I would expect it to move to the next row and first column available

(Video fiddle: https://jsfiddle.net/qs9cn1hw)

gridstack_clip.1.mp4

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