paper-scroll-header-panel scroll to bottom

32 views
Skip to first unread message

ralf....@googlemail.com

unread,
Oct 5, 2015, 5:25:22 AM10/5/15
to Polymer
I am using the paper-scroll-header-panel with an iron-list inside to display a chat dialog. The default scroll behavior of the paper-scroll-header-panel always shows the first element. So whenever I add an element to the buttom of the list it will not automatically scroll to this element.
I know how to scroll to the bottom but I am missing a trigger (an event or callback) which allows me to scroll to the bottom when the list is initialized or when I add a new element. The reason is, that the redering happens asynchronously after adding the elements. So at least it would be helpful to have a render-finished event or something like taht. Currently I implemented a workaround which does the scrolling with a timeout of 1 to 3 seconds. But this is not reliable, since the rednering time depends on the length of the list and on the CPU etc. and of course it is not a good design.

Any ideas?

Reply all
Reply to author
Forward
0 new messages