I want to add two widgets in south of DockLayoutPanel, so it'll be shown as this:
center panel
a space of 14px height
a widget of 29px height
My problem is: If I use addSouth(widget, 29);
it has no space.
If I use addSouth(widget, 43);
it also has no space, but the widget is now 43px height.
I thought to define the widget's margin as 14px, but it doesn't help me, because the widget's margin covers the center panel.
What should I do? I tried also to do twice addSouth, and it produce the most nicer result, but it also wasn't as expected, and I prefer using of only one addSouth.
You can try to add widget in separate LayoutPanel and then add panel to dock panel. Inside LayoutPanel just specify space from top.