PolymerElements / iron-fit-behavior

Fits an element into another element
17 stars 34 forks source link

iron-fit-behavior conflicts with app-header-layout #80

Open andrey-git opened 6 years ago

andrey-git commented 6 years ago

Description

iron-fit-behavior conflicts with app-header-layout

iron-fit-behavior assumes that the dropdown will be displayed on top of everything since it sets z-index: 103. However app-header-layout sets the "header" as z-index 1 and "content" as z-index 0. So the resulting z-index of the dropdown inside the content is 0:103 which is less than 1:0, so the header hides the dropdown.

Expected outcome

Either:

Actual outcome

The dropdown is located with position: fixed;top:0 and is hidden behind app-header.

Live Demo

https://jsbin.com/desunocezo/edit?html,css,output

Steps to reproduce

Put paper-dropdown-menu inside app-header-layout

Browsers Affected