Show
Ignore:
Timestamp:
07/11/08 14:57:54 (4 months ago)
Author:
joonas.lehtinen@…
Message:

Fixes #1938 Changing OrderedLayout? vertical from undefined width to pixelwidth does not properly cut the width of children

Files:
1 modified

Legend:

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

    r5093 r5095  
    462462    /** Recalculate and apply child widths */ 
    463463    private void updateChildWidths() { 
    464         // Horizontal layout is calculated by us 
    465         if (width != null && orientationMode == ORIENTATION_HORIZONTAL) { 
     464        // layout is calculated by us 
     465        if (width != null) { 
    466466 
    467467            // Calculate the space for fixed contents minus marginals 
     
    494494            // Reduce spacing from the size 
    495495            int numChild = childWidgets.size(); 
    496             if (hasComponentSpacing) { 
     496            if (hasComponentSpacing 
     497                    && orientationMode == ORIENTATION_HORIZONTAL) { 
    497498                size -= hSpacing * (numChild - 1); 
    498499            } 
     
    512513        } 
    513514 
    514         // Horizontal layout is calculated by the browsers 
     515        // Layout is calculated by the browsers 
    515516        else { 
    516517            for (Iterator i = childWidgetWrappers.iterator(); i.hasNext();) {