From: Artur Signell Date: Tue, 23 Dec 2008 07:34:05 +0000 (+0000) Subject: Fixed typo X-Git-Tag: 6.7.0.beta1~3454 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=033b9069de498e21f8769c52cc0e9b74b9b24db5;p=vaadin-framework.git Fixed typo svn changeset:6338/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/AbstractComponentContainer.java b/src/com/itmill/toolkit/ui/AbstractComponentContainer.java index 51aca35d25..447623068d 100644 --- a/src/com/itmill/toolkit/ui/AbstractComponentContainer.java +++ b/src/com/itmill/toolkit/ui/AbstractComponentContainer.java @@ -233,14 +233,16 @@ public abstract class AbstractComponentContainer extends AbstractComponent @Override public void setHeight(float height, int unit) { - if (getHeight() < 0 && height >= 0) { + float currentHeight = getHeight(); + if (currentHeight < 0.0f && height >= 0.0f) { // height becoming defined -> relative height childs currently // painted undefined may become defined // TODO this could be optimized (subtree of only those components // which have undefined width due this component), currently just // repaints whole // subtree - } else if (getHeight() >= 0 && height < 0) { + requestRepaintAll(); + } else if (currentHeight >= 0 && height < 0) { requestRepaintAll(); } super.setHeight(height, unit);