From b617f03223f249a5bbcadf5d14d9128c67ad3e3e Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 12 May 2014 19:37:19 +0300 Subject: [PATCH] Do not update state on the client side (#13743) Change-Id: I2e1d714d1bb07db127758cf3f2d741ac50884266 --- client/src/com/vaadin/client/ui/VTabsheet.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/com/vaadin/client/ui/VTabsheet.java b/client/src/com/vaadin/client/ui/VTabsheet.java index 1d2c5c122f..d2d61207ea 100644 --- a/client/src/com/vaadin/client/ui/VTabsheet.java +++ b/client/src/com/vaadin/client/ui/VTabsheet.java @@ -988,10 +988,10 @@ public class VTabsheet extends VTabsheetBase implements Focusable, if (scrolledOutOfView(index)) { // Should not set tabs visible if they are scrolled out of view - tabState.visible = false; + tab.setVisible(false); + } else { + tab.setVisible(tabState.visible); } - // Set the current visibility of the tab (in the browser) - tab.setVisible(tabState.visible); /* * Force the width of the caption container so the content will not wrap @@ -1041,8 +1041,8 @@ public class VTabsheet extends VTabsheetBase implements Focusable, } /** - * Recalculates the sizes of tab captions, causing the tabs to be - * rendered the correct size. + * Recalculates the sizes of tab captions, causing the tabs to be rendered + * the correct size. */ private void updateTabCaptionSizes() { for (int tabIx = 0; tabIx < tb.getTabCount(); tabIx++) { -- 2.39.5