diff options
author | Anna Miroshnik <anna.miroshnik@arcadia.spb.ru> | 2014-09-15 17:11:56 +0400 |
---|---|---|
committer | Sauli Tähkäpää <sauli@vaadin.com> | 2014-11-10 11:50:16 +0200 |
commit | 46878a5f5e39bf70e37f83df2563a4c23f38b7ac (patch) | |
tree | ccb2e46d0cbe0719fe043a61f2d7fe76d2fca7ef /client-compiler/tests | |
parent | 6143c8bcfda9e00f894f96d1fc41db6e3187272a (diff) | |
download | vaadin-framework-46878a5f5e39bf70e37f83df2563a4c23f38b7ac.tar.gz vaadin-framework-46878a5f5e39bf70e37f83df2563a4c23f38b7ac.zip |
Re-adding all rows in Table causes table to loose scroll position (#14581)
Fix: if to remove (container.removeAllItems()) and then to re-add(container.addAll(..)) the same collection in table container - > scroll position is not loosed now.
The hash code and scroll position of the old container is stored when a new container is added.
If the new container has the same hash code, we restore the scroll position.
The scroll position is not restored if another items added to the container.
Change-Id: I52a22c3c1c7b71f1b3447b9d592ab8fececd67b8
Diffstat (limited to 'client-compiler/tests')
0 files changed, 0 insertions, 0 deletions