-
Notifications
You must be signed in to change notification settings - Fork 83
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
Double vertical scrolling bar #6
Comments
Do you see the double vertical scrollbar on our demo ribbon page? http://mdlwp.com/demo/ribbon-page/ |
Hm, no it's ok in the demo. I will try to find what is causing the issue. |
It is doubled when you log in to Wordpress and the Wordpress bar is visible. |
I think because they are both fixed. |
you can change some div's to have |
@leoradmagnegithub does the demo have a double scrollbar? |
The double bar appears when administrators are logged in. This is due to the fact that WP adds html { margin-top: 32px !important; } The first scroll bar appears for A solution simple solution for modern browsers in // Bugfix for double admin bar
add_action( 'wp_head', function () {
if ( ! is_admin_bar_showing() )
return;
echo '
<style>
html {
overflow: hidden;
}
.mdl-layout {
height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
.mdl-layout {
height: calc(100% - 46px);
}
}
</style>
';
}, 999); |
@leoradmagnegithub my comment is a reply to @atais 's issue, which is double vertical bar on ribbon template, when logged in as administrator in all browsers. The issue that you've posted is most probably a different one. |
Ah ok, sorry. |
No, sorry. I didn't see any issues with my website using the latest version of the theme in Firefox. |
You're using a plugin that adds a bar at the top of the page. This not an issue of the theme. |
You need help of a developer with your website, this is not an issue if this theme. |
Yes, sorry for the loss of time. I had had a problem on my site. (This is the new account of the "ghost" in the previous comments) |
Hello.
I have experienced a small bug in the CSS.
I have managed to solve it easily by adding:
Overflow on the page ribbon did not fix it for me.
The text was updated successfully, but these errors were encountered: