Ext GWT - 文本区域不滚动到底部
我使用 com.extjs.gxt.ui.client.widget.form.TextArea
txtConsole= new TextArea();
txtConsole.setReadOnly(true);
container.add(txtConsole);
并设置其值并尝试将滚动设置到底部;
txtConsole.setValue(message);
txtConsole.setCursorPos(message.length());
txtConsole.getElement().setScrollTop(txtConsole.getElement().getScrollHeight());
但滚动仍然位于文本区域的顶部。 我正在使用 GWT 2.1 和 GXT 2.2.1。
我应该怎么做才能将滚动发送到底部?
谢谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经找到了解决方案并且它有效
根据下面的描述;
I've found the solution and it works
According to below description;