简体   繁体   English

选择菜单项时,Polymer Page.js纸张页眉面板元素会滚动到顶部

[英]Polymer Page.js paper-header-panel element scroll top when menu item selected

I have a problem with paper-menu and paper-header-panel. 我的纸张菜单和页眉面板有问题。 When I click on my paper-menu items and webcomponents has correctly loaded the relative page, this one appears in the previous scrolled position. 当我单击我的纸张菜单项,并且Web组件正确加载了相对页面时,该页面将显示在上一个滚动位置。 How I can set to scroll on top when the click is performed?? 执行点击后,如何设置在顶部滚动?

This is because the main container of your header panel has fixed height. 这是因为标题面板的主容器具有固定的高度。 If you are using Polymer Starter Kit all you have to do is remove the height for the ".content" class in app-theme.html 如果您使用的是聚合物入门工具包,那么您要做的就是删除app-theme.html中“ .content”类的高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM