-
Notifications
You must be signed in to change notification settings - Fork 3.4k
toolbar: md-scroll-shrink only works with explicit size of md-content #1089
Description
The way its implemented right now [md-scroll-shrink]
does not work with generated content for our main use case of generated pages inside the content (e.g an arbitrary html snippet, might be a list or something else).
That way the designer would have to know beforehand how large the remainder of the screen is. Usually [flex]
could be used, to fill the rest of the vertical space , but that does not seem to work here.
This happens because the toolbar is listening only on scroll events of the content itself which only get emitted when the content area itself is specifically set to an absolute height smaller than the content.
Basically this make this directive only useful when multiple such headers and content areas are supposed to be underneath each other not for the majority use case of one toolbar with one content are on the screen or am i missing something ?