enthought/enaml — pull request #39 by rkern (2011-12-02 18:41:09+00:00)
Title: Flexspacer

I added a new kind of spacer that specifies two contraints at different strengths, that there is a minimum amount of space (relatively strong) and that the amount of space should equal the minimum (relatively weak). I use this spacer on either side of an item that is in an `hbox()` or `vbox()` for the "orthogonal" sides (e.g. top and bottom for `hbox()` and left and right for the `vbox()`. This allows unequally sized widgets to live in the same box without causing the weird jumpiness we used to see with the Form (which used to specify its row constraints rather like the older implementation of `hbox()`). The box will be sized to accomodate the largest of the items but no more than that.