Open FrogMustang opened 3 years ago
I solved the issue by bypassing it with some basic "display":"none"
and "display":"block"
css and click triggers to hide/show the galleries when the tab buttons are clicked.
It's a good solution and I'm happy with it, but I would still like to know why this was happening :/
@FrogMustang this is just theorizing, but it must mean that calculated height from the tab is 0 at the time when the script runs from the first time. It may need the height of the parent container to calculate the layout.
Filterizr version Which version of Filterizr do you have installed in your project?
I'm using v2.2.4
Describe the issue in details I'm using bootstrap tabs with 2 galleries that are independent. Both galleries use the same script (the vanilla version) and they have custom filters. Everything works well when they are in the same tab, but a weird error occurs when I try to put them in separate ones.
The error
The HTML code
The JS code
The CSS
Any ideas why this is happening? Maybe something in the bootstrap Tabs is messing with it.