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

Clone app-header-layout #632

Merged
merged 4 commits into from
Nov 16, 2017
Merged

Conversation

andrey-git
Copy link
Contributor

Clone app-header-layout to a fix upstream bug PolymerElements/app-layout#486

app-header-layout uses z-index on content which creates a separate stacking content causing dropdown menus to be hidden behind the header.

My previous hack applied transform: translate(0) on content causing child position: fixed elements to behave like position: absolute.

However in that case such elements are scrolled together with content. This is OK for dropdown menus, but is bad for FAB.
The solution proposed here: https://stackoverflow.com/a/37682798/4755809 is to have two wrapper divs. The outer one is non-static and is the base for position: absolute location, and the inner one is static and overflow: auto.

@balloob balloob merged commit 41e97a6 into home-assistant:master Nov 16, 2017
@balloob
Copy link
Member

balloob commented Nov 16, 2017

Nice!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants