I have such a Layout structure: 1) First, lay out the SimpleLayoutPanel main (green border) 2) I want to add the DockLayoutPanel child to the main one (red border, 25px fields)
I implemented this, but the result shown in the application (.jpg) is strange for me.
Thus, all red (upper, left, right, lower) borders of the child should be inside main , but the child panel shifts. How can I implement this logic correctly? I have a more complex ui structure with level 3-4. And I also do not work without fields. 
And here is the code and css:
SimpleLayoutPanel panel = new SimpleLayoutPanel(); panel.setStyleName("mainModulePanel"); SimpleLayoutPanel p = new SimpleLayoutPanel(); p.setStyleName("moduleBody"); panel.setWidget(p); initWidget(panel);
source share