Reason: The paper-scroll title bar on the first boot calculates the height of the title. Then it only listens for the resize event. But neon animated pages do not trigger the iron resize event when switching pages. From https://github.com/PolymerElements/paper-scroll-header-panel/blob/master/paper-scroll-header-panel.html . line number 230
* By default, the height will be measured when it is ready. If the height
* changes later the user needs to either set this value to reflect the
* new height or invoke `measureHeaderHeight()`.
Decision. I solved this problem by explicitly calling the measureHeaderHeight () method of the second scroll-paper title bar. check out http://jsbin.com/visazasena/edit?html,output
Polymer({
is: "inbox-view",
next_page: function() {
document.querySelector("#main-page").selected = 1;
}
});
Change it to
Polymer({
is: "inbox-view",
next_page: function() {
document.querySelector("#main-page").selected = 1;
document.querySelector("#panel").measureHeaderHeight();
}
});
source
share