Re: howto scroll ListBox to bottom entry

2013-06-11 Thread Olaf Raether
I tried both approaches - both are working fine. Thanks. On Sunday, June 9, 2013 10:14:15 PM UTC+2, Jim Douglas wrote: Try this (untested): Element element = myListBox.getElement(); element.setScrollTop(element.getScrollHeight() - element.getClientHeight()); On Jun 9, 10:43 am, Olaf

howto scroll ListBox to bottom entry

2013-06-09 Thread Olaf Raether
I have a com.google.gwt.user.client.ui.ListBox. How can I scroll to the last entry in the list ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: howto scroll ListBox to bottom entry

2013-06-09 Thread Jens
You have to select the last item (and then maybe deselect it again), otherwise its not possible with ListBox. Its not GWT's fault because ListBox directly represents the HTML select element and even in pure JavaScript you can only scroll to an option by selecting it. -- J. -- You received

Re: howto scroll ListBox to bottom entry

2013-06-09 Thread Jim Douglas
Try this (untested): Element element = myListBox.getElement(); element.setScrollTop(element.getScrollHeight() - element.getClientHeight()); On Jun 9, 10:43 am, Olaf Raether o...@raether.de wrote: I have a com.google.gwt.user.client.ui.ListBox. How can I scroll to the last entry in the list ?