Splitpanel auto-set splitter based content size

VerticalSplitPanel vsp = new VerticalSplitPanel();

HorizontalLayout hl1 = new HorizontalLayout();
hl1.setHeight("dynamic1");

HorizontalLayout hl2 = newHorizontalLayout();
hl2.setHeight("dynamic2");

// I expect something like
vsp.setSplitBasedComponent(true);

// if true set splitposition based on first component size(height) and if false set split
// position based on second component size(height)..

The height are unknown while adding components.

Is it possible to set the split position based on the first/second component height?

Thanks in advance