metafizzy / isotope

:revolving_hearts: Filter & sort magical layouts
https://isotope.metafizzy.co
11.05k stars 1.41k forks source link

A "sleep" method would be helpful #1589

Closed ianthedev closed 3 years ago

ianthedev commented 3 years ago

If would be helpful if there is a "sleep" method which allows us to, for example, temporarily put to sleep an Isotope functionality which is in an invisible tabpanel so that it won't recalculate its layout with window resizing.

thesublimeobject commented 3 years ago

@ianthedev — I assume this is related to the other issue, and therefore potentially solved as well, but for this more nuanced question, you could just use the destroy() method whenever one of your tabs is hidden, and then re-initialize the layout once hidden is removed.

ianthedev commented 3 years ago

@thesublimeobject Thanks for the advice. But the other issue isn't actually solved yet, and what we have is just a provisional workaround.