diff options
author | Mikael Grankvist <mgrankvi@vaadin.com> | 2015-02-11 10:38:52 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-02-16 13:16:08 +0000 |
commit | f0c2c4c271f9d906cbeb84c008ea9776200fda44 (patch) | |
tree | d7e2660b752fb57f65581721ac109b8a8d9e8d87 /client | |
parent | 007cb457d688a96c8356fe0abe8a5e499792ebc6 (diff) | |
download | vaadin-framework-f0c2c4c271f9d906cbeb84c008ea9776200fda44.tar.gz vaadin-framework-f0c2c4c271f9d906cbeb84c008ea9776200fda44.zip |
Table should load widgets after container content refresh (#16611)
Change-Id: I887830f31f886743d1bd7167236e2f7b61349dd7
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VScrollTable.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/ui/VScrollTable.java b/client/src/com/vaadin/client/ui/VScrollTable.java index 6b4bb8eb9d..a648128f4d 100644 --- a/client/src/com/vaadin/client/ui/VScrollTable.java +++ b/client/src/com/vaadin/client/ui/VScrollTable.java @@ -1225,7 +1225,12 @@ public class VScrollTable extends FlowPanel implements HasWidgets, // Without this call the scroll position is messed up in IE even after // the lazy scroller has set the scroll position to the first visible // item - scrollBodyPanel.getScrollPosition(); + int pos = scrollBodyPanel.getScrollPosition(); + + // Reset first row in view port so client requests correct last row. + if (pos == 0) { + firstRowInViewPort = 0; + } scrollBody = createScrollBody(); @@ -3380,7 +3385,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets, /** * Saves natural column width if it hasn't been saved already. - * + * * @param columnIndex * @since 7.3.9 */ @@ -4322,7 +4327,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets, /** * Saves natural column width if it hasn't been saved already. - * + * * @param columnIndex * @since 7.3.9 */ |