Polymer paper-dialog-scrollable. scroll to the end

2019-08-06 22:47发布

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条回答
We Are One
2楼-- · 2019-08-06 23:10

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

查看更多
登录 后发表回答