Skip to content

addWidget() or DOM read in single column mode will not adjust to multicolumn mode #1985

@ericpool

Description

@ericpool

When a grid is loaded for the first time in single column mode instead of multicolumn mode, it will remain a single column when resizing to multicolumn mode. Multicolumn mode toggles on, but all the items remain in their left-aligned positions.

Using gridstack 4.6.2, but since it is happening in the demo too, doubt it is relevant.

You can see this happening in the demo page here:
https://gridstackjs.com/demo/nested_advanced.html

Just load the page with the browser at a small enough size to trigger single column mode, then adjust window size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions