]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed caption width when located after component
authorArtur Signell <artur.signell@itmill.com>
Wed, 12 Nov 2008 06:50:45 +0000 (06:50 +0000)
committerArtur Signell <artur.signell@itmill.com>
Wed, 12 Nov 2008 06:50:45 +0000 (06:50 +0000)
svn changeset:5865/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java

index 426c19425322f5326498418914e2ec874f639e2c..73b92b360e16e42f68a9c7fa574b96d8b9086f8b 100644 (file)
@@ -657,7 +657,11 @@ public class ChildComponentContainer extends Panel {
 \r
         // Also update caption max width\r
         if (caption != null) {\r
-            caption.setMaxWidth(width);\r
+            if (caption.shouldBePlacedAfterComponent()) {\r
+                caption.setMaxWidth(captionWidth);\r
+            } else {\r
+                caption.setMaxWidth(width);\r
+            }\r
             captionWidth = caption.getRenderedWidth();\r
         }\r
 \r