Show last Table row via setCurrentPageFirstItemIndex


I have a Table and add rows via a Button click. The user wants to edit the newly added row, but this last row is always out of sight when the table contains more rows than visible. I’m using setCurrentPageFirstItemIndex() to bring the last row into the visible part of the table. Unfortunately this doesn’t work. Best I can only show the second last row. In case when the horizontal slider of the table appears, I can only show the third last row.
I made a little Maven 3 project to show you the problem. Please feel free to modify it to make it work as expected.

Maybe I’m doing something wrong but I think this behaviour might be a bug. So, if someone can confirm this, I could file a ticket.

I’m using Vaadin 6.8.12 on Tomcat 7.0.41 64 Bit.

Any help is much appreciated

Andreas (5.5 KB)

Ticket created see