From 5eaa077e57c70a91d5b9562a22a8b6ad5f6424d8 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 24 Oct 2008 06:29:16 +0000 Subject: [PATCH] Fix for #2173 - FF2 panel problems svn changeset:5701/svn branch:trunk --- src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java index f27630aa8c..4d6707327e 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java @@ -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() -- 2.39.5