Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eleminate "jump" when navigating from page without scrollbar to page with scrollbar? #7

Open
haley-exe opened this issue Sep 11, 2016 · 5 comments

Comments

@haley-exe
Copy link

When navigating between pages that do and do not have a scrollbar on the side, there's a noticeable "jump" when the page loads (e.g. when going from "Home" to "Portfolio" on http://dev.haleycampbell.net).

Any thoughts on how to resolve this? FWIW, I am a complete novice at Grav, CMSs, and coding in general, so my apologies if I need to ask for clarification!

@MATsxm
Copy link
Member

MATsxm commented Sep 11, 2016

Thanks for your post... I guess I undersatnd what you are talking about but sadly, I would say that there's no solution as it depends the way the browser is reading your site.

If your content is one screen height (depends also your resolution and device), the broswer won't add the scrollbar as it is not a need and if your content is more than one screen height, it will be added.

This is the normal way, the browser will read your site.

@haley-exe
Copy link
Author

Hmm, that IS frustrating, since I do plan to create content that is more than 1 page height (which I am also struggling with... it seems that the way the theme is read, any content more than 1 page height is cut off). I know that for many one-page themes, there's a fixed background and scrolling is accomplished without a scrollbar. Would there be a way for me to add or modify code somewhere so I can implement that with Tintamarre?

@MATsxm
Copy link
Member

MATsxm commented Sep 11, 2016

yup, but it's not a theme structured as a one-page
playing with mod_ would be afix, but this is not the "philosophy" of this theme

@haley-exe
Copy link
Author

Fascinating. From what I've read on the Grav documentation page, the file structure for this theme is much more similar to a one-page theme than a regular Grav theme, yes?

In any event, thank you for giving me a place to start. I will look into mod_ to see if there is anything I can do to fix this issue, but I would love any other ideas you have as well!

@haley-exe
Copy link
Author

Solution found! A friend pointed me here:

https://css-tricks.com/eliminate-jumps-in-horizontal-centering-by-forcing-a-scroll-bar/

and added overflow-y: scroll; to the html block at top of the tintamarre.css file. That's fixed the "jump" issue!

@haley-exe haley-exe reopened this Sep 12, 2016
@haley-exe haley-exe reopened this Sep 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants