From 2b52ceff3343af2deb072a6132f659b1fd1d24e3 Mon Sep 17 00:00:00 2001 From: Taras Hupalo Date: Fri, 19 Sep 2014 14:11:11 +0300 Subject: [PATCH] Removes scrolling caused by updating an unfocused table (#12976) Change-Id: Ifd5037c576480a03c7c74c29730338d5a592d20d --- client/src/com/vaadin/client/ui/VScrollTable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/com/vaadin/client/ui/VScrollTable.java b/client/src/com/vaadin/client/ui/VScrollTable.java index a551a04b95..42fef9f0c0 100644 --- a/client/src/com/vaadin/client/ui/VScrollTable.java +++ b/client/src/com/vaadin/client/ui/VScrollTable.java @@ -7518,7 +7518,9 @@ public class VScrollTable extends FlowPanel implements HasWidgets, // Set new focused row focusedRow = row; - ensureRowIsVisible(row); + if (hasFocus) { + ensureRowIsVisible(row); + } return true; } -- 2.39.5