How to get the SplitView handles to only adjust the adjacent views?
-
By default, if you create a SplitView with say 3 child views, and give each one 1/3 of the space, the handle between the 2nd and 3rd view will change the proportion between those 2 views only, but the handle between the 1st and 2nd view will change the proportion between the 1st and the other two views combined, affecting the 3rd view.
This is intended as far as I can tell but I can't imagine anyone actually looking for this behaviour. The documentation suggests setting SplitView.fillWidth (or fillHeight if vertical) true for the middle view, which does fix the problem in the previous example, but doesn't work for more than 3 views. SplitView essentially works like a nested bunch of SplitViews of 2 views instead of like a single SplitView with N views.
Another gripe I have with it is that it doesn't really offer any way to cleanly divide the available space between its views. Setting the SplitView.preferredWidth (or preferredHeight if vertical) to 1/N of the parent width ALMOST works, but doesn't take into consideration the width of the handles. The only way to do it is to set it to (parent.width - handle.width) / parent.children.length which does work but it really seems like there should be a built in way to do it, since it's one of the most basic requirements one might have for a split view.