-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Drawer #37
App Drawer #37
Conversation
}, | ||
|
||
_updateDocScroll: function() { | ||
this.shouldEnableDocScroll(this.persistent || !this.opened); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider updating AppDocumentScrollBehavior
to set overflow: hidden
on body on mobile
*/ | ||
toggleDrawer: function() { | ||
this.opened = !this.opened; | ||
this.listen(this.drawer, 'app-drawer-position-changed', '_resetLayout'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this assumes the drawer is there at app-layout-drawer
's attached time. It is possible that the drawer is appended dynamically and this will not work. How about just add the app-drawer-position-changed
to the listeners
object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
LGTM 👍 |
@@ -156,7 +119,6 @@ | |||
type: Boolean, | |||
readOnly: true, | |||
notify: true, | |||
reflectToAttribute: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we actually want to keep this one so one can style stuffs based on the existence of narrow
attribute. For example, in the publishing template here: https://github.com/PolymerLabs/app-layout/blob/drawer/templates/publishing/src/blog-app.html#L100
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I first saw this I thought that that blog-app
styling would not work because of :not([attribute])
selectors not matching properly in IE/Edge, but for some weird reason (selector matches a class as well, maybe?) it does work.
I'll add the reflectToAttribute
back to narrow
.
No description provided.