.ftg-items height, overflow
-
Hi, I’m using your plugin on many webpages and It’s very nice. So first of all, many thanks for developing It.
I noticed in the last few weeks (sorry but I can’t say an exact version or date) that in a few cases, the .ftg-items container overflows to the upcoming elements following the gallery.
After I inspected the problem, I realized that the plugin sets the height of the ftg-items container through an inline height css property in each cycle after adding a new image to the gallery’s colums. See jquery.finaltilesgallery.js, line 832:
if (this.$element.find(“.ftg-items”).height() != hEdge.top)
The condition should be
if (this.$element.find(“.ftg-items”).height() <= hEdge.top)
because if you use “!=”, then the final height of the .ftg-items container will be good only if the tallest image is in the last column of the gallery. But if not, then the height of the whole ftg-items will be smaller than It should be.
Best Regards,
Csaba
- You must be logged in to reply to this topic.