When adding ContentPanel to any container, it has always bottom margin from 2 pixels (I have tried on Chrome and IE), which make difficult to align this widgets on the screen.
The easiest way to see the error is adding ContentPanel to ContentPanel.

ContentPanel parent = new ContentPanel();
parent.setHeight(300);
parent.setWidth(300);

ContentPanel child= new ContentPanel();
parent.add(child);