material icon indicating copy to clipboard operation
material copied to clipboard

sidenav,backdrop, dialog should be fixed

Open AlmogBaku opened this issue 11 years ago • 10 comments

On pages with long contents the backdrop nor the sidenav not covers the whole screen while scrolling.

On my case, the solution was:

.md-opaque, md-sidenav, .md-dialog-container {
  position: fixed !important;
}

AlmogBaku avatar Dec 31 '14 18:12 AlmogBaku

@AlmogBaku Could you post a plunkr demonstrating this? It seems to be working fine for me.

epelc avatar Jan 02 '15 15:01 epelc

you can see it on http://www.chiefangel.com

AlmogBaku avatar Jan 02 '15 17:01 AlmogBaku

It probably has to do with your use of layout-fill which is very much like height: 100%; if you want full page elements. It needs to be applied on all parents. You probably forgot it on the body element.

epelc avatar Jan 02 '15 18:01 epelc

@epelc I just tried to add layout-fill class to all the parents of the sidenav with the "chrome dev tool" and it didn't solved the problem(without the position: fixed)

AlmogBaku avatar Jan 02 '15 18:01 AlmogBaku

@AlmogBaku maybe you can take a look at my example project go-material. I don't remember if I added a dialog to it yet but it is using the same layout/structure of my app which dialogs work fine on.

Also can you check against the latest master and 0.7.0rc1 a lot of things get randomly broken and fixed. We may be running different versions.

epelc avatar Jan 02 '15 18:01 epelc

Unable to reproduce.

ThomasBurleson avatar Jan 06 '15 16:01 ThomasBurleson

Wow man this really fixed the issue for me but broken another feature, I'm trying to implement one sidebar on the right with two buttons that trigger it, one button to open it covering the content and the other to lock it open in the flow of content, this fix however fixed the one covering the content but the other no longer works

Bassel-m avatar Mar 09 '16 11:03 Bassel-m

@Bassel-m I didn't investigate at your issue yet, so if you think this is a issue, which relates to ngMaterial, then please file a new one.

devversion avatar Mar 09 '16 11:03 devversion

@DevVersion Can you please have a look at this site http://basselahmed.com/myAdmin .. forgive me for the language it's in Arabic, Please scroll down and press the switch in the top right see the problem

Bassel-m avatar Mar 09 '16 12:03 Bassel-m

This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.

ThomasBurleson avatar Apr 28 '16 20:04 ThomasBurleson