是的,我会使用一个Flickable包含Text对象的对象。每当你添加文本Text,检查它paintedHeight,并调整Flickable的contentY,如果它有任何更大。
funkybro 的回答启发了我的最终解决方案:
function scroll_to_bottom() {
flickabe_item.contentY =
Math.max(0, webview_item.height - flickabe_item.height);
return;
}
Run Code Online (Sandbox Code Playgroud)
谢谢 !
| 归档时间: |
|
| 查看次数: |
7046 次 |
| 最近记录: |