本文介绍了在启动时强制关闭核心抽屉面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在使用核心抽屉面板显示左侧菜单和右侧内容.我希望在默认情况下在打开页面时关闭菜单.我尝试将响应宽度设置为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中修复: https://github.com/Polymer/core-drawer-panel/commit/68a2fc20235d5dad52cee806d29a76d9627b0ab8 但我只使用0.2.3.感谢您的播放.

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.

这篇关于在启动时强制关闭核心抽屉面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 18:44