summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-03-12 11:38:33 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-03-12 11:38:33 +0000
commit7698b85bbdd029ef64153804fb0c73c1d0b72103 (patch)
tree448a276a7cd77933a2db290c214e55380f824e7b
parent0bf97857d49d63eb051d601d0273bae0baeec42f (diff)
downloadvaadin-framework-7698b85bbdd029ef64153804fb0c73c1d0b72103.tar.gz
vaadin-framework-7698b85bbdd029ef64153804fb0c73c1d0b72103.zip
fixes lousy performance on FF2 with deep component tree. Needs some testing still.
svn changeset:7067/svn branch:6.0
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java
index 87e02f56af..4edaafbce2 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java
@@ -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()) {
/*