From: Artur Signell Date: Thu, 12 Nov 2009 14:52:08 +0000 (+0000) Subject: Merged fix for #3701 - "Caption causes occasional clipping in Firefox" X-Git-Tag: 6.7.0.beta1~2306 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=512cb35bf3712d5fa99a4d32942022c821f45afa;p=vaadin-framework.git Merged fix for #3701 - "Caption causes occasional clipping in Firefox" svn changeset:9755/svn branch:6.2 --- 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; }