> what do you think on adding a feature like this also to other elements > (if not already available) ? > So we could put this standard logic only in one place, and call from > all components ... >
In this case, it's not applying to a component, but a table view column. Components already have min/max preferred size properties, which buys us similar functionality for components. I don't think this applied to table pane columns either, since (a) relative width columns in a table pane are guaranteed to get *at least* their preferred width, and (b) the user can't resize table pane columns (there's no table pane column header). > And in some cases could be useful to have lists, text fields, etc > become longer (if set a relative dimensioning for it), when its > container have more space, but in this case could be useful to have > optional attributes for minimum and maximum relative dimensions, and > maybe also for absolute. > This isn't consistent with how layout works -- it's up to the container to determine how to lay its children out. So table pane has the notion of relative widths and will set the size of each cell component to be the size of the cell, so you can get the behavior you describe already with any component by using table pane. -T
