From: Jouni Koivuviita Date: Tue, 28 Jul 2009 08:52:45 +0000 (+0000) Subject: Fixes #3166: Use of the cached instance of VTabsheet clears the "hidetabs"-flag and... X-Git-Tag: 6.7.0.beta1~2640 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=27f1a5d4ac4d11a1e5ecc58abdd78a74420be53c;p=vaadin-framework.git Fixes #3166: Use of the cached instance of VTabsheet clears the "hidetabs"-flag and style-names svn changeset:8416/svn branch:6.0 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java index f38bfd8386..1606732c2d 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java @@ -375,9 +375,11 @@ public class VTabsheet extends VTabsheetBase { public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { rendering = true; - // Handle stylename changes before generics (might affect size - // calculations) - handleStyleNames(uidl); + if (!uidl.getBooleanAttribute("cached")) { + // Handle stylename changes before generics (might affect size + // calculations) + handleStyleNames(uidl); + } super.updateFromUIDL(uidl, client); if (cachedUpdate) {