Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Making the left paperDrawerPanel reacting to responsive width #432

Closed
ghost opened this issue Oct 12, 2015 · 1 comment
Closed

Making the left paperDrawerPanel reacting to responsive width #432

ghost opened this issue Oct 12, 2015 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Oct 12, 2015

We are trying to make the drawer respond a bit differently from what it does in the demo

We have the same menu buttons in the top menu & the left drawer panel.
We want this behaviour.
  when desktop mode (responsiveWidth > 300px):
    - hide hamburger, and hence the left drawerPanel
    - show the top menu
  when mobile mode (responsiveWidth < 300px):
    - show hamburger, and hence on press the left drawerPanel
    - hide the top menu

at the moment the only event i can tap into is:
addEventListener('paper-responsive-change', function(e)
This is after the event, but i really need to get access to the before event

I am wondering if someone can recommend an approach.

@ghost ghost changed the title drawer reacting to responsive width Making the left paperDrawerPanel reacting to responsive width Oct 12, 2015
@addyosmani addyosmani self-assigned this Oct 21, 2015
@addyosmani
Copy link
Member

This issue was moved to PolymerElements/paper-drawer-panel#104

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant