Order of setting the dock property

Hi,

I have an application that create dockable dynamically and set them the dockableproperty.
I noticed that the order in wich I split the dockable into the station affect the final layout

for example :
split.drop(a, SplitDockProperty.WEST);
split.drop(c, SplitDockProperty.SOUTH);
split.drop(b, SplitDockProperty.EAST);

and
split.drop(a, SplitDockProperty.WEST);
split.drop(b, SplitDockProperty.EAST);
split.drop(c, SplitDockProperty.SOUTH);

will have different output (check attached)

Any help how can I define my output?

Thank you

When using “drop” you add one Dockable after the other. The WEST/EAST/… property only tells were to drop the element in respect to the current layout. As soon the Dockable is added this WEST/EAST/… information is lost.

See it like this: you have the empty “split”-station and a set of Dockable is floating somewhere, e.g. in another window. Now you drag one Dockable after the other to “split”, depending on the order (and where you put them) the output looks different.