You cannot set the size of the center area in SplitLayoutPanel or in DockLayoutPanel, you can only set sizes of the edge children, from the javadoc:
A panel that lays its child widgets out "docked" at its outer edges, and allows its last widget to take up the remaining space in its center.
This behavior makes sense, otherwise the dock-layout panel must have a way to select edge widgets to reduce their size and this could be worst.
I would use an onResize
handler to know when a widget is resized and restore sizes someway.