gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

Items lose "data-gs-y" styles when any item is resized horizontally.

Open Stratofish opened this issue 9 years ago • 4 comments

This seems to happen only when the resized item is the only one on it's row. Resizing it vertically resets them.

https://jsfiddle.net/ad2e0hvm/12/

As far as I can see this is due to the fix for #600. _updateStyles() is meant to be incremental but that fix flat out deletes all the styles and only recreates the top (item height + 10) rows

Stratofish avatar Aug 21 '17 14:08 Stratofish

This is bizarre. If you resize vertically and don't let go of click, you can still resize horizontally and it works fine. In my projects, I don't have this issue. I'll investigate, but I can't think of a good reason (which only means that it's a bad reason...but aren't all bugs bad?).

radiolips avatar Sep 05 '17 15:09 radiolips

@Stratofish Could you try again with the latest develop branch code? I believe that an old PR that I just merged will fix this for you.

radiolips avatar Sep 09 '17 20:09 radiolips

I have the same problem, it seems fixed with the last dev version

nickxbs avatar Feb 21 '18 09:02 nickxbs

Thanks, @nickxbs . I'm going to close the ticket - Let me know if you still have a problem, @Stratofish .

radiolips avatar Feb 22 '18 02:02 radiolips