Skip to content

nested grid layout lost when loading in 1 column mode #2235

Description

@fredericrous

Subject of the issue

gridstack elements don't move to the top when screen is resized from mobile 1 column to standard view

Your environment

  • version of gridstack.js - v7.2.3 (can reproduce on v6 as well)
  • which browser/OS chrome/mac

Steps to reproduce

  • navigate to https://gridstackjs.com/demo/nested_advanced.html
  • obsever the widgets are all stacked up to the top
  • reduce your browser's window until the one column mode triggers
  • refresh the page ⚠️
  • resize the window again to go out of the mobile mode
  • you can observe the widgets do not get back to the place they are supposed to be

Expected behavior

I expect the widgets to be stacked up at the top of the page when I resize a small browser window (float: true)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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