grid layout chat observations

Charles Goodwin <[email protected]> Wed, 31 Mar 2004 01:13:26 +0000
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
Bearing in mind boxes only identify their own size using their min/max
properties for width and height (which default to 0 and MAX_INT)...

======================================================================
Adam says:

(22:43:42) megacz: the blue and red boxes are in the same row
(22:43:50) megacz: the red box fixes the row's maximum height at
                   50 pixels
(22:43:58) megacz: therefore the blue box cannot be taller than 50
                   pixels

The references says:

          "Each column's maximum width is the largest maximum width
           of the cells in that column"



======================================================================
Adam says:

(22:47:11) megacz: if boxes within the row are allowed to be different
                   heights, the layout becomes hopelessly complex and
                   unpredictable

The reference says:

          "Packed boxes: Each packed box's actual position and size
           is then set to the aggregation of the actual sizes of
           the cells it spans.  If this size exceeds the box's maximum
           width, the box is sized to its maximum width and centered
           horizontally within the space occupied by its cells."

I'd also suggest the the layout is not unpredictable if the row's
maximum height is set to that of the maximum height of the boxes in the
row (as stated by the spec).  If anything, that's fairly logical.



======================================================================
Adam says:

(22:44:03) megacz: I think you need to re-read the reference

Charlie says:

(at time of sending email) charlieg: No comment. ;)
-- 
- Charlie

Charles Goodwin <[email protected]>
Online @ http://www.charlietech.com