From fca6f07fbe96b54eb61585ee7bca9c86eaf0db79 Mon Sep 17 00:00:00 2001 From: John Alhroos Date: Tue, 30 Nov 2010 06:32:04 +0000 Subject: Fix for #6075 svn changeset:16217/svn branch:6.5 --- .../gwt/client/ui/layout/CellBasedLayout.java | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/com/vaadin') 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) { -- cgit v1.2.3