Hi,
I followed the Building User Interfaces doc on the GWT site. I can't
seem to get a panel to fill with a background color though. Example:
HorizontalPanel hp = new HorizontalPanel();
hp.add(new Label("some text"));
hp.add(new Label("some more text"));
hp.setStyleName("mystyle");
VerticalPanel parent = new VerticalPanel();
parent.add(hp);
parent.setWidth("800px");
// style.css
.mystyle {
background-color: #00FF00;
}
Now the panel displays, but I can see that it only fills with green up
to the point which the second label ends, not the full 800px width as
I expected. I can get around it by setting the individual cell sizes
to something like 400 and 400 pixels respectively, but I won't always
know the precise layout size for all cells, besides that being really
hard to maintain.
I was thinking that if the parent panel is 800px wide, then the child
panels would have automatically filled the entire available width?
with their specified background-color?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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
-~----------~----~----~----~------~----~------~--~---