From: Artur Signell Date: Mon, 12 May 2014 16:37:19 +0000 (+0300) Subject: Do not update state on the client side (#13743) X-Git-Tag: 7.2.0~4^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b617f03223f249a5bbcadf5d14d9128c67ad3e3e;p=vaadin-framework.git Do not update state on the client side (#13743) Change-Id: I2e1d714d1bb07db127758cf3f2d741ac50884266 --- 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++) {