]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes lousy performance on FF2 with deep component tree. Needs some testing still.
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 12 Mar 2009 11:38:33 +0000 (11:38 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 12 Mar 2009 11:38:33 +0000 (11:38 +0000)
svn changeset:7067/svn branch:6.0

src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java

index 87e02f56af52921ff9ce628deb3045e7aba3b999..4edaafbce2489c86febff1461208db3b17689b68 100644 (file)
@@ -5,6 +5,7 @@ import java.util.NoSuchElementException;
 
 import com.google.gwt.dom.client.DivElement;
 import com.google.gwt.dom.client.Document;
+import com.google.gwt.dom.client.Style;
 import com.google.gwt.user.client.ui.Panel;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
@@ -76,7 +77,12 @@ public class ChildComponentContainer extends Panel {
         containerDIV.getStyle().setProperty("overflow", "hidden");
 
         widgetDIV = Document.get().createDivElement();
-        setFloat(widgetDIV, "left");
+        if (BrowserInfo.get().isFF2()) {
+            Style style = widgetDIV.getStyle();
+            style.setProperty("display", "table-cell");
+        } else {
+            setFloat(widgetDIV, "left");
+        }
 
         if (BrowserInfo.get().isIE()) {
             /*