gwttwitter-bootstrapgwt-bootstrap

Increasing the height of root panel in gwt


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.

enter image description here


Solution

  • 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 a padding-top: 50px in body.If you don't want this, you have to put a padding-top: 0px; manually in your document body tag.

    See also https://github.com/gwtbootstrap/gwt-bootstrap/issues/120