material icon indicating copy to clipboard operation
material copied to clipboard

Subheader: sticky without setting a height?

Open ghost opened this issue 11 years ago • 11 comments

In the demo, https://material.angularjs.org/#/demo/material.components.subheader height is set and it works, but viewports can change, different devices have different widths.

How can I get this to work without setting a constant height?

ghost avatar Mar 26 '15 21:03 ghost

I was also wondering the same. Spent hours trying to figure this one out and NOTHING! Its frustrating.

It'll be more frustrating if no one replies this thread.

neoighodaro avatar Mar 27 '15 08:03 neoighodaro

Sounds related to https://github.com/angular/material/issues/2047.

marcysutton avatar Mar 27 '15 19:03 marcysutton

Same here. I spent quite some time trying to figure it out with no success...

guiporto avatar Jul 25 '15 18:07 guiporto

BTW the title of this issue should mention md-subheader instead of md-header. That makes it even harder to find through GH search

guiporto avatar Jul 25 '15 19:07 guiporto

Kind of works if you use eg. height: 100vh; but that can bring other issues..

mackelito avatar Jan 14 '16 23:01 mackelito

Could this please be reopened? The requirement to have a fixed height is really not a good one :)

mackelito avatar Apr 29 '16 08:04 mackelito

Refer: Spring Cleaning 2016.

jayeshanandani avatar Apr 29 '16 08:04 jayeshanandani

@jayeshanandani yeah I did read that one but I´m not sure that any of those points really apply to this ticket.. or does it? :)

I guess te same issue apply on the toolbar directive.. Not even the demo is working properly: https://material.angularjs.org/latest/demo/toolbar http://codepen.io/mackelito/full/bpmjQZ/

Often when reloading the demo it shrink stopps working (On mac/chrome at least).

(But perhaps that should be a different issue..)

mackelito avatar Apr 29 '16 09:04 mackelito

@mackelito You can reopen the issue by filing a new one, giving steps to reproduce and pointing to this bug. They have said you can file new issues by referencing old ones with proper and description and template the one that is there on their discussion link.

jayeshanandani avatar Apr 29 '16 10:04 jayeshanandani

+1 It does not make much sense for subheaders to work only on fixed height containers.

kvindascr avatar May 06 '16 03:05 kvindascr

Did anyone figure this out? Thanks

whittssg avatar Dec 28 '16 18:12 whittssg