Don't exactly know what that code does, but it works :-) Thanks
2010/2/26 Todd Volkert <[email protected]>
> My guess is that you're calling this after the table view has been
> invalidated but before it's been laid out. In cases such as these, you have
> to queue a callback, like this:
>
> ApplicationContext.queueCallback(new Runnable() {
> @Override
> public void run() {
> // Perform scrolling here
> }
> });
>
> Cheers,
> -T
>
>
> On Fri, Feb 26, 2010 at 3:05 AM, Mathias Versichele <
> [email protected]> wrote:
>
>> I'm not calling it in response to a Task Listener, and I can navigate to
>> the bottom with the arrow keys without any problems.
>>
>>
>> 2010/2/25 Greg Brown <[email protected]>
>>
>>> Another question - can you use the arrow keys to navigate to the last
>>> row?
>>>
>>> On Feb 25, 2010, at 3:40 PM, Mathias Versichele wrote:
>>>
>>> It gets stuck about 6 rows from the bottom, so it doesn't work
>>> perfectly...
>>>
>>> 2010/2/25 Greg Brown <[email protected]>
>>>
>>>> Try this, let me know if it doesn't work:
>>>>
>>>> int n = tableView.getTableData().getLength() - 1;
>>>> tableView.scrollAreaToVisible(tableView.getRowBounds(n));
>>>>
>>>>
>>>> On Feb 25, 2010, at 3:06 PM, Mathias Versichele wrote:
>>>>
>>>> How do you make a tableview automatically scroll to the bottom when new
>>>> rows are added ?
>>>>
>>>> --
>>>> Mathias Versichele
>>>> Bio-ir milieutechnologie / Msc. geografie
>>>> Oudburgstraat 16
>>>> 9240 Zele
>>>> 0485/16.07.08
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Mathias Versichele
>>> Bio-ir milieutechnologie / Msc. geografie
>>> Oudburgstraat 16
>>> 9240 Zele
>>> 0485/16.07.08
>>>
>>>
>>>
>>
>>
>> --
>> Mathias Versichele
>> Bio-ir milieutechnologie / Msc. geografie
>> Oudburgstraat 16
>> 9240 Zele
>> 0485/16.07.08
>>
>
>
--
Mathias Versichele
Bio-ir milieutechnologie / Msc. geografie
Oudburgstraat 16
9240 Zele
0485/16.07.08