I’m having trouble getting ScrollPanel.scrollToBottom to work. It’s not scrolling to the bottom of the panel. Here’s an example snippet:
FlexTable flexTable = new FlexTable();
// Add loads of rows to the flex table here..
ScrollPanel scrollPanel = new ScrollPanel(flexTable);
scrollPanel.scrollToBottom();
// Add the scrollPanel to the view here..
I have also tried using scrollToBottom() method in the onLoad() overriden method, but it doesn’t work.
What am I doing wrong here?
Delay the
scrollToBottom()command, so that the ScrollPanel is ready to take input.