Hello,
I have one question regarding google maps display using MapWidget
class.
When mapwidget instance in populated with simple Layout like one in
the faqs, everything seems to working fine.
But when the same instance is set on a following layout say
VerticalSplitPanel mainPanel = new VerticalSplitPanel();
HorizontalSplitPanel horizontalSplitPanel = new
HorizontalSplitPanel();
horizontalSplitPanel .setLeftWidget(//some other panel);
horizontalSplitPanel .setSplitPosition("50%");
horizontalSplitPanel .setRightWidget(getNewMapWigetInstance())
mainPanel.setTopWidget(horizontalSplitPanel );
mainPanel.setBottomWidget(//some other horizontal panel);
mainPanel
private Mapwidget getNewMapWidget()
{
VerticalPanel verticalPanel = new VerticalPanel();
AbsolutePanel absolutePanel = new AbsolutePanel();
MapWidget mapWiddget = new MapWidget("200px", "200px");
absolutePanel .add(mapWiddget);
mapWiddget .checkResize();
verticalPanel .add(absolutePanel );
return verticalPanel ;
}
The problem is the mapwiget remains with size 200px 200px, it will
never fill up the entire panel which it is supposed.
The panel layout depicted above is something that is required for
type of look and feel i have.
Can anybody helpme why the mapwidget is not able to resize to the
width and height of its outer panel?
Thank you
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---