I have a html panel and i want to add the html panel to browser screen hence i used rootPanel.get().add(htmlPanel);
. But their is a extra space between the starting of the screen and the first widget in html panel (As in image). I tried with setting rootPanel.get().setheight("100%") and rootPanel.get().setsize("100%","100%")
but it doesn't seem to work please help i want to remove the extra space and so that the widget starts from beginning.
This padding is added by GWT Bootstrap for its NavBar
widget. See the note in the javadoc:
NOTE: We assume that most people will use the
ResponsiveNavbar
, so, we automatically add apadding-top: 50px
inbody
.If you don't want this, you have to put apadding-top: 0px;
manually in your documentbody
tag.
See also https://github.com/gwtbootstrap/gwt-bootstrap/issues/120