SOLVED: Bug with Image Galleries in Nestable Tabs (overlapping images) and Masonry Layout

Browser: Chrome 110
OS: Windows 10 Pro, Version 22H2
URL: https://staging.valon-hasani.de
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

After talking to my client I now want to move my Elementor site to Bricks which is why I“m currently recreating an existing client site in Bricks.

One thing first:
I know exactly that Elementor has pretty much the same bug and many users have already reported that on github. I know that this doesn“t have to mean anything cause it“s a different builder but I found it actually quite interesting that 2 completely different builders have the exact same problem. The link to the Elementor github thread is:

I“m not sure if this maybe helps you figure out what“s happening.

But back to the problem in Bricks:

On the page IĀ“m working on I have ā€œTabs (Nestable)ā€ and in each tab thereĀ“s an ā€œImage Galleryā€ with images. The layout for every Image Gallery is set to Masonry. When I set the layout to ā€œMetroā€ for example I didnĀ“t have these problems so far.
With this setup, when you click between the different tabs and Galleries and maybe even open an image from a gallery in the lightbox and then switch to a different tab, at some point you“ll get problems with the masonry layout:

As you can see here for example, the images donĀ“t load correctly and the top image overlaps the bottom one. If you reload the entire page, it works for a while but once you start ā€œinteractingā€ with the tabs and the Image Galleries the problem comes back.

In this tab for example it“s even worse:

Here a short video:

This Image Gallery in this tab contains 15 images but most of them are apparently overlapping.

I hope this can be fixed soon :confused: . Coming from Elementor where I had pretty much the exact same problem it“s very frustrating to now have that problem in Bricks, too.

For me, this bug was solved with Bricks 1.9.9.

Cheers

Patric

Hmm… ThatĀ“s weird. IĀ“m on 1.9.9. Just checked it again. But the bug is still there for me.

Edit: I just checked the changelog for 1.9.9. It says

ā€œImage gallery element: Masonry layout images overlap on slow network when loading=lazy attribute added (via plugins, etc.)ā€

I mean… My network is definitely not slow and I donĀ“t have loading=lazy added in any way. I only have Bricks installed and no plugins.

@timmse do you maybe know something about this and if this should be solved with 1.9.9? Not sure why it“s not working for me.
I“d love to keep my client updated about his new site and whether or not I can put it live now that pretty much everything else is recreated with Bricks.

Hi Soluna,
Thanks for your report!

I can’t see any issue on your website. The masonry layout loads fine on first load and recalculates/rearranges when changing tabs or the viewport width.

I guess it will be more of a caching/optimization problem. Presumably, old JS/CSS is still loaded, so the fix implemented in 1.9.9 is not available.

Potential solution: Empty cache, regenerate ā€œoptimizedā€ files, disable optimization.

Best regards,
timmse

Thanks for your quick response!

When you say that you can“t see any issue on my website, does that mean you couldn“t replicate the bug with the images and everything is working as it should for you?

IĀ“ve already tried with Edge instead of Chrome but Edge also produces that weird bug. Then I emptied my cache and I used the ā€œRegenerate CSS filesā€ in Bricks under ā€œSettingsā€ → ā€œGeneralā€ → ā€œCustom breakpointsā€ but itĀ“s still not working.

And with the ā€œold JS/CSS is still loadedā€: IĀ“m not sure where that should come from. The staging was setup 3 days ago and I downloaded the latest version of Bricks from https://my.bricksbuilder.io/.

Best regards and thanks already for your help!

Edit:

I just asked a friend to check if he gets the same bug and he checked it with his Desktop PC and his company laptop and on both devices he gets the same bug that I get with the overlapping images.

I have just tested again and can now reproduce the problem both on your website and locally! We are on it :rocket:

1 Like

Ty so much :heart: That“s great to hear!

Hi @Soluna ,

Could you please send us the admin credential details to your staging so we can test a potential fix? (help@bricksbuilder.io)
Please grant us the rights to the Theme editor as well.

Regards,
Jenn

Hey @itchycode ,

thanks for your response! I just set the admin credentials for you with administrator permissions, so you should have the rights to the Theme editor as well.
I guess you shouldĀ“ve received a mail with the credentials by now. If not, please let me know. Then IĀ“d send them to you ā€œmanuallyā€ :slight_smile:

Regards,
Maximilian

@Soluna ,

Thank you so much.
Can you help to test the Tabs + Image Galleries now :slight_smile:
I just applied a temp fix there.

Regards,
Jenn

1 Like

Hey @itchycode :slight_smile:
I just tested the Tabs + Image Galleries on my own PC, Laptop and Smartphone and I also asked a friend to test it on his PC and it looks like it“s working now! :blush:

Thanks a lot already for your help!

1 Like

Hi guys,

We’ve fixed this issue in Bricks 1.10 beta, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

Best regards,
M

1 Like