This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Toolbar in directive, scroll-shrink not working #2751
Labels
Milestone
Comments
mdToolbar md-scroll-shrink is not working with ng-if |
topherfangio
added
needs: investigation
The cause of this issue is not well understood and needs to be investigated by the team or community
needs: demo
A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue
labels
Aug 24, 2015
Any chance you guys could provide a demo of the exact issue so we can track it down more easily? Thanks! |
http://codepen.io/anon/pen/jPgxqb
|
topherfangio
removed
the
needs: demo
A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue
label
Aug 25, 2015
Confirmed; I have a decent idea of what the issue is and will look into it. Thanks! |
topherfangio
added
type: bug
and removed
needs: investigation
The cause of this issue is not well understood and needs to be investigated by the team or community
labels
Aug 25, 2015
topherfangio
added a commit
that referenced
this issue
Aug 31, 2015
Previously, the toolbar would fail to enable scroll shrinking if the developer used an `ng-if` statement on the `md-toolbar`. This commit allows usage of `ng-if` as well as watching the `md-scroll-shrink` for changes so they can enable/disable scroll shrinking. Fixes #2751.
topherfangio
added a commit
that referenced
this issue
Aug 31, 2015
Previously, the toolbar would fail to enable scroll shrinking if the developer used an `ng-if` statement on the `md-toolbar`. This commit allows usage of `ng-if` as well as watching the `md-scroll-shrink` for changes so they can enable/disable scroll shrinking. Fixes #2751.
topherfangio
added
the
pr: merge ready
This PR is ready for a caretaker to review
label
Aug 31, 2015
topherfangio
added a commit
that referenced
this issue
Sep 1, 2015
Previously, the toolbar would fail to enable scroll shrinking if the developer used an `ng-if` statement on the `md-toolbar`. This commit allows usage of `ng-if` as well as watching the `md-scroll-shrink` for changes so they can enable/disable scroll shrinking. Fixes #2751.
kennethcachia
pushed a commit
to kennethcachia/material
that referenced
this issue
Sep 23, 2015
Previously, the toolbar would fail to enable scroll shrinking if the developer used an `ng-if` statement on the `md-toolbar`. This commit allows usage of `ng-if` as well as watching the `md-scroll-shrink` for changes so they can enable/disable scroll shrinking. Fixes angular#2751. Closes angular#4394.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I've created a directive for a global nav-bar for my app, which creates a toolbar with some default stuff, and then transcludes page-specific content (actions etc).
Having the
md-toolbar
withmd-scroll-shrink=""
does not work, though.As far as I can see, it never catches the
$mdContentLoaded
event, because the event is broadcast before my directive has loaded.Is this a fault in my design, or is this an error in the way
md-toolbar
works?The text was updated successfully, but these errors were encountered: