Changeset 5571

Show
Ignore:
Timestamp:
10/01/08 07:00:05 (7 weeks ago)
Author:
artur.signell@…
Message:

Fix for #1939

Files:
1 modified

Legend:

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

    r5570 r5571  
    11151115 
    11161116                    captionDimensionOrPositionUpdated = true; 
    1117                 } else 
    1118  
    1119                 // Caption exists. Move it to correct position if needed 
    1120                 if (after == (DOM.getChildIndex(captionWrapper, widgetElement) > DOM 
    1121                         .getChildIndex(captionWrapper, captionElement))) { 
     1117                } else if (after == (DOM.getChildIndex(captionWrapper, 
     1118                        widgetElement) > DOM.getChildIndex(captionWrapper, 
     1119                        captionElement))) { 
     1120                    // Caption exists. Move it to correct position if it is not 
     1121                    // there 
    11221122                    Element firstElement = DOM.getChild(captionWrapper, DOM 
    11231123                            .getChildCount(captionWrapper) - 2); 
     
    11371137 
    11381138                    captionDimensionOrPositionUpdated = true; 
     1139                } else { 
     1140                    if (after) { 
     1141                        widget.addStyleName("i-orderedlayout-w-e"); 
     1142                    } else { 
     1143                        widget.removeStyleName("i-orderedlayout-w-e"); 
     1144                    } 
    11391145                } 
    11401146