]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes regression from FF2 optimization (#2749). Horizontal now again bit sluggish...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 13 Mar 2009 14:20:27 +0000 (14:20 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 13 Mar 2009 14:20:27 +0000 (14:20 +0000)
svn changeset:7081/svn branch:6.0

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

index fc7eefc9be3145160db8e90938b3071f80656135..97e8c8c0723c021d03873d9368d0a00710595720 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.Element;
 import com.google.gwt.dom.client.Style;
 import com.google.gwt.dom.client.TableElement;
 import com.google.gwt.user.client.ui.Panel;
@@ -143,7 +144,7 @@ public class ChildComponentContainer extends Panel {
         }
     }
 
-    private static void setFloat(DivElement div, String floatString) {
+    private static void setFloat(Element div, String floatString) {
         if (BrowserInfo.get().isIE()) {
             div.getStyle().setProperty("styleFloat", floatString);
             // IE requires display:inline for margin-left to work together
@@ -161,9 +162,9 @@ public class ChildComponentContainer extends Panel {
 
     public void setOrientation(int orientation) {
         if (orientation == CellBasedLayout.ORIENTATION_HORIZONTAL) {
-            setFloat(containerDIV, "left");
+            setFloat(getElement(), "left");
         } else {
-            setFloat(containerDIV, "");
+            setFloat(getElement(), "");
         }
         setHeight("0px");
         // setWidth("0px");