NO BUG: Builder Horizontal Scroll with Mega Menu

Browser: Chrome 132.0.6834.84
OS: Windows

Hi bricks team,

I’m not sure why, but when I use a full-width mega menu in the header, both the horizontal and vertical scrollbars appear in the Builder, while on the front-end, only the scrollbar appears when the mega menu is opened. The same thing happens in the mega menu on Bricks.

The problem seems to be with the container inside the menu, which is 1200px wide. If this is true, what is the proper way to use it instead of the container?

Please watch the video below.

Hi @HOSEIN,

thank you for your report. Sadly, I can’t replicate the issue you see. Can you export the header template, so that I can import it and test with exactly your setup?

Thank you,
Matej

Yes, of course.

Hello @HOSEIN,

I think I found what is causing this:

  1. In your “content” element, you are setting a “padding”. You can remove it here, and set it in your “Container” element.

  2. But even in your container element, I would replace it with “Block”, and manually set max-width and aligh it to center. Kind of seems better, to use “Containers” only directly under the sections. This is not mandatory though - just my preference :slight_smile:

Can you try that and see if it works?
Matej

1 Like

In your “content” element, you are setting a “padding”. You can remove it here, and set it in your “Container” element.

That’s right! The problem is now solved.

But even in your container element, I would replace it with “Block”, and manually set max-width and aligh it to center. Kind of seems better, to use “Containers” only directly under the sections. This is not mandatory though - just my preference :slight_smile:

Yes, you are right. This is a principle that I had forgotten.

As always, thank you for your attention to this report❤️ This problem is now resolved.

1 Like

Perfect, I’m glad that it works now :smiling_face:

I’ll mark this topic as no-bug.

Matej

1 Like