Groups
Groups
Sign in
Groups
Groups
GWT Users
Conversations
About
Send feedback
Help
Adding Grid with margin to a LayoutPanel
14 views
Skip to first unread message
hermis
unread,
Mar 21, 2012, 7:38:12 AM
3/21/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages