Hey all,
When I add a grid with 100% height to a layout panel and set a margin on
it, the bottom margin is not honoured:
*public* *void* *onModuleLoad*()
{
Grid grid = *new* Grid(1,1);
grid.setHeight("100%");
grid.getElement().getStyle().setBackgroundColor("yellow");
grid.getElement().getStyle().setMargin(10, Unit.PX);
LayoutPanel lp = *new* LayoutPanel();
lp.add( grid );
RootLayoutPanel.*get*().add( lp );
}
How can I fix this?
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/d-kWujoDMdUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.