Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rory-orennia opened this issue Jun 25, 2024 · 1 comment
Open

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

rory-orennia opened this issue Jun 25, 2024 · 1 comment
Labels

Comments

@rory-orennia
Copy link

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.

@adumesny
Copy link
Member

same underlying issue as #2493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants