Forcing the core-drawer-panel to be closed on startup

我们两清 提交于 2019-12-12 01:36:06

问题


I'm using core-drawer-panel to show a left-hand menu and right-hand content. I want the menu to be closed when I open the page by default. I tried setting responsiveWidth to 9999px, which works, but the drawer is quickly shown, then hidden, every time I go to the page. Is there a style I can apply or JS I can run before polymer is "stable" to get it to hide the menu?


回答1:


Ah, this is fixed in 0.2.4: https://github.com/Polymer/core-drawer-panel/commit/68a2fc20235d5dad52cee806d29a76d9627b0ab8 but I was only using 0.2.3. Thanks for playing.



来源:https://stackoverflow.com/questions/23686403/forcing-the-core-drawer-panel-to-be-closed-on-startup

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!