From 5fc82be2219cae2931f892d0dc8a2f4c272cc434 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 12 Nov 2008 06:50:45 +0000 Subject: [PATCH] Fixed caption width when located after component svn changeset:5865/svn branch:trunk --- .../gwt/client/ui/layout/ChildComponentContainer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java index 426c194253..73b92b360e 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java @@ -657,7 +657,11 @@ public class ChildComponentContainer extends Panel { // Also update caption max width if (caption != null) { - caption.setMaxWidth(width); + if (caption.shouldBePlacedAfterComponent()) { + caption.setMaxWidth(captionWidth); + } else { + caption.setMaxWidth(width); + } captionWidth = caption.getRenderedWidth(); } -- 2.39.5