SplitPane cannot be used for this. SplitPane assumes a fixed size - its preferred size does not change based on the position of the splitter. I do not believe there is currently a component that does what you describe, though it would be a useful addition. It could be something like Expander, only instead of expand/collapse, it could resize (maybe call it Resizer?). Then you could add them to a vertical box pane to get the behavior you want.
On Jun 19, 2011, at 5:56 AM, Piotr Kołaczkowski wrote: > > Hi, > > In Pivot 2.0, is there a way to create a component with one edge thick just > like the splitter in the SplitPane, so that when user drags this edge, the > component resizes appropriately, but only this component and not the other > one that is above/below/left/right? > > Imagine two components, one placed over another, in a single Expander (but it > can be a BoxPane, Border or whatever): > > =================== > Expander title > ----------------------------- > > Vertically resizable component > > ------------++-------------- > Fixed size component > =================== > > I want the edge denoted by ---++--- to act very much like a traditional > SplitPane, except that > it doesn't resize the bottom component. So of course, when the user drags it, > the total height of the container holding the two components also changes. > If it is not possible to do that with the draggable splitter in the middle, I > would be also satisfied with a solution, that the bottom edge of the expander > can be resized, like this: > > =================== > Expander title > ----------------------------- > > Resizable component 1 > > ---------------------------- > Fixed size component 2 > =======++========== > > > I tried that with SplitPane, by simply setting minimum, maximum and > preferredHeight of the bottom component to the same value, but it seems to > ignore this, and it also doesn't resize the container. :( > > Thank you and best regards, > Piotr > > > -- > Piotr Kołaczkowski > Instytut Informatyki, Politechnika Warszawska > Nowowiejska 15/19, 00-665 Warszawa > e-mail: [email protected] > www: http://home.elka.pw.edu.pl/~pkolaczk/ >
