Skip to content

Conversation

@adumesny
Copy link
Member

@adumesny adumesny commented Oct 4, 2020

Description

  • fix for Animate doesn't work #937, thank you @marttop for proposing a fix
  • ended up re-writting the CSS creation routine and make it easier to maintain going forward.
  • we now only re-create stylesheet when margin or cellHeight (the only static items) change.
    Else we append row based rules as the grids needs them (and only what it needs, not always +10)
    (the old code would delete and re-create the sheet just about every time (at least twice on startup + 1 for every row as +10 buffer was always added, no a buffer per say...)

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* fix for gridstack#937, thank you @marttop for proposing a fix
* ended up re-writting the CSS creation routine and make it easier to maintain going forward.
* we now only re-create stylesheet when margin or cellHeight (the only static items) change.
Else we happen row based rules as the grids needs them (and only what it needs, not always +10)
@adumesny adumesny merged commit 0c58315 into gridstack:develop Oct 4, 2020
@adumesny adumesny mentioned this pull request Oct 4, 2020
3 tasks
@marttop
Copy link

marttop commented Oct 4, 2020

Thanks for this final fix!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants