In our last project, we had to implement Splitter , but we approached it from a slightly different point of view. We decided that the creation of the HDividedBox component is not flexible enough - imagine the case when you need to expand the user interface with an additional splitter so that you have 3 areas divided into 2 splitters ... the separator must be somehow separated from the actual containers separated by him.
I will try to generalize our solution:
<s:VGroup>
<components:Container1 id="container1"/>
<components:Splitter id="splitter"
topComponent="{container1}"
bottomComponent="{container2}" />
<components:Container2 id="container2"/>
</s:VGroup>
The Splitter component is a component with relatively simple behavior - depending on how you drag it, you update the height of the container1.
, , -. , .