]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #2173 - FF2 panel problems
authorArtur Signell <artur.signell@itmill.com>
Fri, 24 Oct 2008 06:29:16 +0000 (06:29 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 24 Oct 2008 06:29:16 +0000 (06:29 +0000)
svn changeset:5701/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java

index f27630aa8c83331f722991ba0b870501f1f431f5..4d6707327e845337ea3d3f90f061c013688c9523 100644 (file)
@@ -171,8 +171,9 @@ public class IPanel extends SimplePanel implements Container,
         }
         layout.updateFromUIDL(layoutUidl, client);
 
-        if (BrowserInfo.get().isIE()) {
-            // IE is not able to make the offsetWidth for contentNode correct
+        if (BrowserInfo.get().isIE() || BrowserInfo.get().isFF2()) {
+            // IE/FF2 is not able to make the offsetWidth for contentNode
+            // correct
             // for some reason...
             iLayout(false);
         }
@@ -285,7 +286,8 @@ public class IPanel extends SimplePanel implements Container,
 
         }
 
-        if (BrowserInfo.get().isIE() && (width == null || width.equals(""))) {
+        if ((BrowserInfo.get().isIE() || BrowserInfo.get().isFF2())
+                && (width == null || width.equals(""))) {
             int captionWidth = captionText.getOffsetWidth()
                     + getCaptionMarginLeft() + getCaptionPaddingHorizontal();
             int layoutWidth = ((Widget) layout).getOffsetWidth()