aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2008-11-12 06:50:45 +0000
committerArtur Signell <artur.signell@itmill.com>2008-11-12 06:50:45 +0000
commit5fc82be2219cae2931f892d0dc8a2f4c272cc434 (patch)
tree7db4cb9ec59b4a89d20fa0315d7ad8350d4afe87 /src
parent658cac26264a4789129049362f112d019ba8911a (diff)
downloadvaadin-framework-5fc82be2219cae2931f892d0dc8a2f4c272cc434.tar.gz
vaadin-framework-5fc82be2219cae2931f892d0dc8a2f4c272cc434.zip
Fixed caption width when located after component
svn changeset:5865/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java6
1 files changed, 5 insertions, 1 deletions
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();
}