]> source.dussan.org Git - vaadin-framework.git/commitdiff
Removes scrolling caused by updating an unfocused table (#12976)
authorTaras Hupalo <taras.hupalo@gmail.com>
Fri, 19 Sep 2014 11:11:11 +0000 (14:11 +0300)
committerVaadin Code Review <review@vaadin.com>
Mon, 22 Sep 2014 11:53:07 +0000 (11:53 +0000)
Change-Id: Ifd5037c576480a03c7c74c29730338d5a592d20d

client/src/com/vaadin/client/ui/VScrollTable.java

index 859d600dafbb1c24d9cdf82eb06b6445d47e8c06..0def8ac69c6de0ad8a4d17905b48740738d0cdd8 100644 (file)
@@ -7529,7 +7529,9 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             // Set new focused row
             focusedRow = row;
 
-            ensureRowIsVisible(row);
+            if (hasFocus) {
+                ensureRowIsVisible(row);
+            }
 
             return true;
         }