在启动时强制关闭核心抽屉面板

问题描述:

我正在使用核心抽屉面板显示左侧菜单和右侧内容.我希望在默认情况下在打开页面时关闭菜单.我尝试将响应宽度设置为9999px,这是可行的,但是每次我转到页面时,抽屉都会快速显示然后隐藏.在聚合物稳定"之前我可以应用某种样式或可以运行的JS使其隐藏菜单吗?

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?

嗯,此问题已在0.2.4中修复:

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.