Skip to content
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

Merged
merged 15 commits into from
Jan 12, 2016
Merged

App Drawer #37

merged 15 commits into from
Jan 12, 2016

Conversation

keanulee
Copy link
Contributor

@keanulee keanulee commented Jan 4, 2016

No description provided.

},

_updateDocScroll: function() {
this.shouldEnableDocScroll(this.persistent || !this.opened);
Copy link
Contributor Author

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');
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@frankiefu
Copy link
Contributor

LGTM 👍

@@ -156,7 +119,6 @@
type: Boolean,
readOnly: true,
notify: true,
reflectToAttribute: true,
Copy link
Contributor

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

Copy link
Contributor Author

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.

keanulee added a commit that referenced this pull request Jan 12, 2016
@keanulee keanulee merged commit 8dc8f2e into master Jan 12, 2016
@keanulee keanulee deleted the drawer branch February 17, 2016 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants