TablePane supports laying out its children using relative width and height - might it satisfy your use case?
-T On Tue, Aug 4, 2009 at 5:44 AM, Noel Grandin <[email protected]> wrote: > Hi > > That would be nice, but the API and implementation is not trivial. > > We would need to change the API to either > (a) expose the current unit of preferredWidth (pixels or percentage) > i.e. have some kind of width-unit field. > (b) change to using some kind of SizeConstraint class/struct to > encapsulate {value, unit} > > (b) would be better in my opinion - less possibility of current code > getting confused about what the value from getPreferredWidth() means. > > Regards, Noel. > > Niclas Hedhman wrote: > > Gang, > > > > I think it would be nice that preferredWidth & preferredHeight could > > be expressed in % of available space (if possible). Same probably goes > > for many other properties, such as SplitPane.splitLocation > > > > > > Cheers > > > >
