From 512cb35bf3712d5fa99a4d32942022c821f45afa Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 12 Nov 2009 14:52:08 +0000 Subject: [PATCH] Merged fix for #3701 - "Caption causes occasional clipping in Firefox" svn changeset:9755/svn branch:6.2 --- src/com/vaadin/terminal/gwt/client/VCaption.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/VCaption.java b/src/com/vaadin/terminal/gwt/client/VCaption.java index de40940ad2..5a6306b79b 100644 --- a/src/com/vaadin/terminal/gwt/client/VCaption.java +++ b/src/com/vaadin/terminal/gwt/client/VCaption.java @@ -343,26 +343,26 @@ public class VCaption extends HTML { int h; if (icon != null) { - h = icon.getOffsetHeight(); + h = Util.getRequiredHeight(icon.getElement()); if (h > height) { height = h; } } if (captionText != null) { - h = captionText.getOffsetHeight(); + h = Util.getRequiredHeight(captionText); if (h > height) { height = h; } } if (requiredFieldIndicator != null) { - h = requiredFieldIndicator.getOffsetHeight(); + h = Util.getRequiredHeight(requiredFieldIndicator); if (h > height) { height = h; } } if (errorIndicatorElement != null) { - h = errorIndicatorElement.getOffsetHeight(); + h = Util.getRequiredHeight(errorIndicatorElement); if (h > height) { height = h; } -- 2.39.5