kdietrich/gridstack-angular

Position changes when dashboard is reloaded

raxIsBlur opened this issue · 1 comments

Hello,

I'm not too sure if this is related to Gridstack itself.

I've been trying out Gridstack to create a simple dashboard.

Currently, the flow to create the dashboard and widget is this:

  1. The user creates a dashboard
  2. The user creates widgets
  3. User resizes or updates the position of the widget (on change event trigger, the widget record in the DB is updated to reflect the new size/position).

My issue is that whenever I reload the page and the widgets are rendered is that certain widgets get repositioned or moved down, I've made sure that the widget's new position is updated correctly before the reload. But it seems that whenever the page is reloaded, the widget gets repositioned which then triggers the update on the record.

As for the Gristack options, auto-position and float are both false.

Example:

image

I'm not sure what to look into to fix this and am already looking into other libraries to use if I can't resolve this.

If anyone has a tip on what I can do, or look into, to help resolve this, it would be greatly appreciated.

I'm experiencing the same issue. Did you find any solution?