Skip to content

Widgets get the wrong width when resized in breakpoint mode #2718

@rory-orennia

Description

@rory-orennia

Subject of the issue

If you resize a widget while in a smaller breakpoint, then save, then load that widget, it'll now have the wrong width.

Your environment

  • version of gridstack.js - 10.2.1
  • which browser/OS - Firefox + MacOS

Steps to reproduce

https://jsfiddle.net/8uyv7k9o/4/

  1. click load
  2. resize widget 2
  3. click save
  4. click load
  5. item 2 resizes to the full width
  6. open the console and see that the w: 4(or more) on that widget when it started as w: 2 and was shrunk.
Screen.Recording.2024-06-25.at.11.17.46.AM.mov

Expected behavior

The widget should be the same size after load as it was when it was saved. I was hoping #2669 would solve this but it did not.

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