diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-09-08 11:38:58 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-09-08 11:38:58 +0000 |
commit | e98080fc2045019f0197d63986900584ac611c81 (patch) | |
tree | 1ac2fd733f62760f1bf5ee7b49c67253ef3dd890 /src | |
parent | 4b5ddcdf29e3b35ba9483dbada1502a96c552a7c (diff) | |
download | vaadin-framework-e98080fc2045019f0197d63986900584ac611c81.tar.gz vaadin-framework-e98080fc2045019f0197d63986900584ac611c81.zip |
added minor visibility check to avoid error in hosted mode
svn changeset:8706/svn branch:6.1
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java b/src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java index c3f591df5d..1d4ed5b0f9 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java @@ -215,15 +215,17 @@ public abstract class CellBasedLayout extends ComplexPanel implements Container } private void updateMarginAndSpacingInfo(UIDL uidl) { - int bitMask = uidl.getIntAttribute("margins"); - if (activeMarginsInfo.getBitMask() != bitMask) { - activeMarginsInfo = new VMarginInfo(bitMask); - marginsNeedsRecalculation = true; - } - boolean spacing = uidl.getBooleanAttribute("spacing"); - if (spacing != spacingEnabled) { - marginsNeedsRecalculation = true; - spacingEnabled = spacing; + if (!uidl.hasAttribute("invisible")) { + int bitMask = uidl.getIntAttribute("margins"); + if (activeMarginsInfo.getBitMask() != bitMask) { + activeMarginsInfo = new VMarginInfo(bitMask); + marginsNeedsRecalculation = true; + } + boolean spacing = uidl.getBooleanAttribute("spacing"); + if (spacing != spacingEnabled) { + marginsNeedsRecalculation = true; + spacingEnabled = spacing; + } } } |