Skip to content

Layout breaks when grid is initilized with one column #3071

Open
@FilipKujavec

Description

@FilipKujavec

Subject of the issue

Layout breaks when grid is initialized in one column through breakpoints with makeWidget(). Both the order is wrong and when resizing, it doesnt properly restore the 12 column layout.

Your environment

  • version of gridstack.js - 12.2.1
  • which browser/OS: Firefox/Windows

Steps to reproduce

https://jsfiddle.net/f3159znr/3/
Size output window down so its smaller than the breakpoint, then reload and resize it so its larger than the breakpoint

one-column.mp4

Expected behavior

Grid should behave like a grid initialized with 12 columns:

normal.mp4

I created a PR with a possible fix here: #3072

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions