summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-05-12 19:37:19 +0300
committerVaadin Code Review <review@vaadin.com>2014-05-12 16:41:07 +0000
commitb617f03223f249a5bbcadf5d14d9128c67ad3e3e (patch)
tree9a60abcd0ef2d5bf1893168bffeed993bb29329c /client
parent77a08ca0f910fb00f97015a751d5f8414c2985eb (diff)
downloadvaadin-framework-b617f03223f249a5bbcadf5d14d9128c67ad3e3e.tar.gz
vaadin-framework-b617f03223f249a5bbcadf5d14d9128c67ad3e3e.zip
Do not update state on the client side (#13743)
Change-Id: I2e1d714d1bb07db127758cf3f2d741ac50884266
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VTabsheet.java10
1 files 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++) {