Expand layout components to equal size

I’m not completely sure if it is even possible with vaadin. Take a look into attachment.
My goal is to the upper layout should be exactly same as the bottom one. Bottom layout have explicit height (600px). Unfortunately I cannot use this workaround, because fields in layout depends on context (some of them are invisible when value is empty).

Is it possible that layout components automatically expanding height of them to max height of one of them?

Source code of this example here:
https://github.com/LukaszByczynski/vaadin-layout-issue

17269.png