diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-01-19 20:46:05 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-02-05 14:32:09 +0000 |
commit | 9a7798e6393152027f7ac88ca449959a6bd71ce0 (patch) | |
tree | cdcea13976ba24c40b3fe57e290e4cbccf1e424f /client/src | |
parent | c5083844600c49e7e25e3947f53c50c6284fb5f5 (diff) | |
download | vaadin-framework-9a7798e6393152027f7ac88ca449959a6bd71ce0.tar.gz vaadin-framework-9a7798e6393152027f7ac88ca449959a6bd71ce0.zip |
Fix Editor overlay position when footer is displayed on top (#19491)
Change-Id: Ifffe66c8a872fe3625cf8c60115b172610b6e9b5
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 0de5e7a239..252bcfed3c 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -1817,9 +1817,7 @@ public class Grid<T> extends ResizeComposite implements @Override public void onScroll(ScrollEvent event) { updateHorizontalScrollPosition(); - if (!isBuffered()) { - updateVerticalScrollPosition(); - } + updateVerticalScrollPosition(); } }); @@ -2109,6 +2107,10 @@ public class Grid<T> extends ResizeComposite implements * row container if the edited row is scrolled out of the visible area. */ private void updateVerticalScrollPosition() { + if (isBuffered()) { + return; + } + double newScrollTop = grid.getScrollTop(); int gridTop = grid.getElement().getAbsoluteTop(); |