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? Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/5cd562e5-e19c-43b8-bd13-8e3346153f2d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
