Jump to content

[SOLVED ]Fixed top bar not behaving correctly


Recommended Posts

Good morning.

I don't know if this has happened to anyone too, but I'm having a problem making a topbar fixed on mobile. Once you start scrolling and its position becomes fixed, it appears cut off, as if off the screen.

I have seen that it does not happen on iPhone phones, but it happens on all the Android phones that I have tested. I leave you the link to the website so you can see the behavior in real time: www.thebath.es

 

Thanks again!

Screenshot_2024-01-10-09-47-07-430_com.android.chrome.jpg

Screenshot_2024-01-10-09-47-15-891_com.android.chrome.jpg

Edited by ednukros (see edit history)
Link to comment
Share on other sites

I have managed to solve the problem.

I'll leave it here in case anyone finds themselves in the same situation.

In head.tpl I have modified the following tag:

<meta name="viewport" content="width=device-width, initial-scale=1">

For this:

<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"/>

And solved!

I hope my little contribution can help someone :)

Link to comment
Share on other sites

  • ednukros changed the title to [SOLVED ]Fixed top bar not behaving correctly

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...