dgrubelic / material-design-lite

Material Design Lite Components in HTML/CSS/JS
http://getmdl.io
Apache License 2.0
3 stars 6 forks source link

Fixed date picker behind mdl dialog #17

Closed dgrubelic closed 8 years ago

dgrubelic commented 8 years ago

Should investigate this, but it seams that now fixed date picker can't be shown inside dialog as it appears behind mdl dialog window.

dgrubelic commented 8 years ago

Dialog windows are always rendered on top of entire page content, so if date picker is appended to body (in order to behave well with other MDL components like Layout), fixed date picker is always rendered behind modal dialog window.

RanzQ commented 8 years ago

This can be solved by using .show() instead of .showModal() and then adjusting the css a bit to center the dialog vertically. I'm using pikaday but the issue should be same.

dgrubelic commented 8 years ago

I'll try this solution and see how it goes. Thanks for suggestion. :)

RanzQ commented 8 years ago

The problem is that native dialogs are rendered on top of everything. But with .show() it's added to body.

dgrubelic commented 8 years ago

Yes, but that way i must add backdrop element manually which is not what is required behaviour.