summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2010-11-30 06:32:04 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2010-11-30 06:32:04 +0000
commitfca6f07fbe96b54eb61585ee7bca9c86eaf0db79 (patch)
treeaf531caf7b1da5844ecc569db8f983bd5bdd40bf /src
parentf6e41dc7c8666146595bc6aa66102f7cfc9c37cb (diff)
downloadvaadin-framework-fca6f07fbe96b54eb61585ee7bca9c86eaf0db79.tar.gz
vaadin-framework-fca6f07fbe96b54eb61585ee7bca9c86eaf0db79.zip
Fix for #6075
svn changeset:16217/svn branch:6.5
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java30
1 files changed, 30 insertions, 0 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 64b1ea5f69..13d5283ba5 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java
@@ -165,6 +165,36 @@ public abstract class CellBasedLayout extends ComplexPanel implements Container
}
+ @Override
+ public void setWidth(String width) {
+ super.setWidth(width);
+
+ /*
+ * Ensure the the dynamic width stays up to date even if size is altered
+ * only on client side.
+ */
+ if (width == null || width.equals("")) {
+ dynamicWidth = true;
+ } else {
+ dynamicWidth = false;
+ }
+ }
+
+ @Override
+ public void setHeight(String height) {
+ super.setHeight(height);
+
+ /*
+ * Ensure the the dynamic height stays up to date even if size is
+ * altered only on client side.
+ */
+ if (height == null || height.equals("")) {
+ dynamicHeight = true;
+ } else {
+ dynamicHeight = false;
+ }
+ }
+
protected void addOrMoveChild(ChildComponentContainer childComponent,
int position) {
if (childComponent.getParent() == this) {