聚合物纸可对话滚动.滚动到最后 [英] Polymer paper-dialog-scrollable. scroll to the end
本文介绍了聚合物纸可对话滚动.滚动到最后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用可对白滚动的纸.
I use paper-dialog-scrollable.
<paper-dialog-scrollable>
</paper-dialog-scrollable>
如何使此部分滚动到末尾?我查看了api,但我无法使用它们.
How can I make this section to scroll to the end? I looked in the api and their is nothing that I can use.
推荐答案
您可以为可对纸滚动"提供一些ID(例如,可对纸滚动"),并且
You can give the paper-dialog-scrollable some id (e.g mypaperscrollable) and
this.mypaperscrollable.$.scrollable.scrollTop = someValueHere
您可以获取可滚动对象中最后一个元素的相对位置,并将其用作scrollTop的值
You could get the relative position of the last element inside your scrollable and use that as the value for scrollTop
这篇关于聚合物纸可对话滚动.滚动到最后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文