material icon indicating copy to clipboard operation
material copied to clipboard

Full height layout is broken (?)

Open ivoviz opened this issue 11 years ago • 5 comments

I'm not sure if it was intended, but since a1889cd4726d1d36314dc164b5605da2eb4b50b4 it's impossible to have a full height page without explicitly adding html, body { height: 100%; }. Adding layout-fill to the body tag doesn't work either.

Pen that shows the issue: http://codepen.io/anon/pen/RWmKeR

ivoviz avatar Nov 24 '15 01:11 ivoviz

I have noticed that by adding position absolute to the parent it works. modified pen: http://codepen.io/anon/pen/wKbrwO

It doesn't work by even giving just height: 100% , that is because unless the parent has full height layout-fill will not work.

Correct me if I am wrong and if there are solutions I would be interested to know.

JunedS avatar Nov 24 '15 10:11 JunedS

I experienced similar issues since I updated angular-material today. My whole app is scrollable now instead of only the content area. And on https://material.angularjs.org/HEAD/ it's not possible to scroll at all.

Update: Scrolling is only possible in IE11, but there the whole page is only about 220px high.

2015-11-24_13h39_11

jb29 avatar Nov 24 '15 12:11 jb29

Adding layout-fill to the <html> tag makes it work actually, but imo html and body should be handled by default.

ivoviz avatar Nov 24 '15 14:11 ivoviz

fixed.

ThomasBurleson avatar Nov 25 '15 23:11 ThomasBurleson

Adding layout-fill to the html tag didn't work for me. I added layout-fill to the parent and grandparent nodes of the md-content node in order to get it to work on firefox (v42 on ubuntu). I'm using 1.0.0-rc5.

DallanQ avatar Nov 27 '15 01:11 DallanQ