]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed typo
authorArtur Signell <artur.signell@itmill.com>
Tue, 23 Dec 2008 07:34:05 +0000 (07:34 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 23 Dec 2008 07:34:05 +0000 (07:34 +0000)
svn changeset:6338/svn branch:trunk

src/com/itmill/toolkit/ui/AbstractComponentContainer.java

index 51aca35d25d022b5054ddfb718c72700f1318bb6..447623068dea90cd6e247c071b936251fb019577 100644 (file)
@@ -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);