问题
I use paper-dialog-scrollable.
<paper-dialog-scrollable>
</paper-dialog-scrollable>
How can I make this section to scroll to the end? I looked in the api and their is nothing that I can use.
回答1:
You can give the paper-dialog-scrollable some id (e.g mypaperscrollable) and
this.mypaperscrollable.$.scrollable.scrollTop = someValueHere
You could get the relative position of the last element inside your scrollable and use that as the value for scrollTop
来源:https://stackoverflow.com/questions/33235079/polymer-paper-dialog-scrollable-scroll-to-the-end