SOLVED: Header shifts left when scrolling up if navigation has submenu and header is fixed

Bricks Version: 1.6.1
Browser: Chrome 108.0.5359.125
OS: Windows
URL: [https://staging.oberseechuchilachen.ch/]

I have a header template with a logo and a navigation menu that has a submenu (standard Wordpress menu).

In the header template I have activated Fixed Header and push-up after 200px and a scroll-shadow.

In the Chrome browser on Windows, when I scroll up, as soon as the 200px are reached, the header shifts suddenly left (I guess around 20px?) and then it disappears. On the right side of the header for a split second a scrollbar is shown, which I guess is the reason why the header shifts left.

When I use the exact same header with a navigation menu that has NO submenu, then the header works fine and no shifting to the left happens when I scroll up.

So I guess something goes wrong with the header hiding / scrolling-up functionality if the navigation menu has a submenu.

Thanks for helping

Patric

1 Like

Hi Patric,
Welcome to the forum, and thanks so much for your report!

I was able to reproduce the issue and probably found an easy fix. Please add the following custom CSS and check, if it solves the issue:

#brx-header::-webkit-scrollbar {
  display: none;
}

Best regards,
timmse

Dear timmse

Thanks! It works.

Thanks and best regards

Patric

I noticed the same for mine. Can we expect a fix in the builder instead of adding multiple custom codes for the fixes(not supposed to be done by the users) to our site? Otherwise, we must remember all the custom codes for it every time we build new sites.

4 Likes

Hi Jornes,
Of course, you can expect a fix (see the title, it’s in progress). Using the custom CSS allows you to fix the issue immediately, but no one forces you to add it :wink:

Best regards,
timmse

1 Like

Hi guys,
We’ve fixed this bug in Bricks 1.7 beta, now available as a manual download in your Bricks account: Account – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse

1 Like

Thankful that this issue is resolved in version 1.7. I was confused a lot and now there is a solution. Thank you Bricks team, I appreciate what you guys are doing

Hi Timmse!

I’m making a onepgae size, and maked my “header” to fixed.
But in mobile view the section is overflow. You said, in bricks 1.7 beta was fixed, but no. :slight_smile:
If I turned off the fixed css with chrome devtools the overflow problem is gone, but my header is not “sticky”.

I’m using 1.7 stable version.

Hi,
This report was about a vertical scrollbar, not an overflow :slight_smile: I don’t see a scrollbar on your screenshots though. Nevertheless, a link would be very helpful.

Hi @timmse !

I’m sorry if I was careless and posted in the wrong place. I didn’t want to open a new post.

Here is the link: https://apparently.simplecreative.hu/

With the header/menu I see no problem. Further down, however, your SVGs cause an overflow:

Set the code element to overflow:hidden.
Nice Layout, btw!

1 Like

OH MY GODE! You are write! :smiley:

The problem was really the 3 code elements. I put it owerflow hidden, and its working. :slight_smile:

I suspected the header because only that one element owerflowed from the picture, the code elements were visually perfectly fine. :smiley:

Thank you for the positive feedback about the layout.
It is far from ready, and it takes a disproportionate amount of time, compared to the fact that it will “only” perform the function of a landing page. :slight_smile: