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

Remove superfluous scrollbar caused by menububble #1902

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

azul
Copy link
Contributor

@azul azul commented Oct 20, 2021

Summary

When the menububble is prepared
it is rendered at the bottom of the page and hidden.
The margin-bottom: -3px causes it to create a scrollbar.

Once the menububble is shown
it is positioned on the screen
and the scrollbar is gone.
So only apply the margin-bottom: -3px
when the menububble is shown.

package-lock.json Outdated Show resolved Hide resolved
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good to me.

package-lock.json Outdated Show resolved Hide resolved
When the menububble is prepared
it is rendered at the bottom of the page and hidden.
The `margin-bottom: -3px` causes it to create a scrollbar.

Once the menububble is shown
it is positioned on the screen
and the scrollbar is gone.
So only apply the `margin-bottom: -3px`
when the menububble is shown.

Signed-off-by: Azul <azul@riseup.net>
@azul azul force-pushed the azul/fix-1572-superfluous-scrollbar branch from 2f4f6ba to 243afb2 Compare October 20, 2021 09:04
@azul azul merged commit 29ec033 into master Oct 20, 2021
@delete-merged-branch delete-merged-branch bot deleted the azul/fix-1572-superfluous-scrollbar branch October 20, 2021 09:15
@skjnldsv skjnldsv mentioned this pull request Oct 25, 2021
25 tasks
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

Successfully merging this pull request may close these issues.

Regression: superflouis scrollbar due to margin-bottom: -3px in the menububble
3 participants