Re: Issue 127 in gwt-google-apis: MapWidget does show correctly in a GWT-Ext panel

3 views
Skip to first unread message

gwt-goo...@googlecode.com

unread,
Jan 18, 2011, 11:05:28 PM1/18/11
to galgwt-issue-...@googlegroups.com

Comment #10 on issue 127 by racbha...@gmail.com: MapWidget does show
correctly in a GWT-Ext panel
http://code.google.com/p/gwt-google-apis/issues/detail?id=127

I have a problem specific to the decoratedTabPanel. When I add a map
(contained in a simple panel) to the tab panel, the RHS of the map is grey.
However if the map is placed outside the tab panel, the whole map is
visible.

I have tried the map.checkResizAndCenter() method and have tried setting
different sizes. None of the above fix the problems.

gwt-goo...@googlecode.com

unread,
Jan 19, 2011, 11:00:41 AM1/19/11
to galgwt-issue-...@googlegroups.com

Comment #11 on issue 127 by zun...@google.com: MapWidget does show

This is happening because the map doesn't size itself correctly when it
isn't attached to the DOM. Try using a ScheduledCommand to call
checkResizeAndCenter() and also add the call after the tab is selected.

gwt-goo...@googlecode.com

unread,
Oct 31, 2013, 7:29:54 AM10/31/13
to galgwt-issue-...@googlegroups.com

Comment #12 on issue 127 by zHa...@gmail.com: MapWidget does show correctly
Hi,

Thanks #7 galgwt....@gmail.com
public void onClick(Widget arg0) {
map.setVisible(true);
map.checkResize();
}

In the lib I use (https://github.com/branflake2267/GWT-Maps-V3-Api) the
method name is mapWidget.triggerResize()

{
...
mapControllerPanel.setVisible(visible);
if (visible)
mapWidget.triggerResize();
}

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages