From: Artur Signell Date: Tue, 21 Oct 2008 11:28:57 +0000 (+0000) Subject: Caption width calculation fix X-Git-Tag: 6.7.0.beta1~3964 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=63340caac5e0e790ca7b0ec1a48689a2065dc40f;p=vaadin-framework.git Caption width calculation fix svn changeset:5682/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ICaption.java b/src/com/itmill/toolkit/terminal/gwt/client/ICaption.java index ecfb9f0c61..513a585841 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ICaption.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ICaption.java @@ -308,6 +308,10 @@ public class ICaption extends HTML { availableWidth -= errorIndicatorElement.getOffsetWidth(); } + if (availableWidth < 0) { + availableWidth = 0; + } + if (icon != null) { if (availableWidth > icon.getOffsetWidth()) { // ApplicationConnection.getConsole().log(