Changeset 5865 for trunk

Show
Ignore:
Timestamp:
11/12/08 06:50:45 (2 months ago)
Author:
artur.signell@…
Message:

Fixed caption width when located after component

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java

    r5832 r5865  
    658658        // Also update caption max width 
    659659        if (caption != null) { 
    660             caption.setMaxWidth(width); 
     660            if (caption.shouldBePlacedAfterComponent()) { 
     661                caption.setMaxWidth(captionWidth); 
     662            } else { 
     663                caption.setMaxWidth(width); 
     664            } 
    661665            captionWidth = caption.getRenderedWidth(); 
    662666        }