[Users] SOLVED (apparently)! GeoExt popup moves anchor when html is updated

David Miller teknocreator at gmail.com
Wed Apr 27 17:35:00 CEST 2011


Just a quick note that I meant the OL and Sencha forums.  Copying and
pasting too fast.

On Wed, Apr 27, 2011 at 11:33 AM, David Miller <teknocreator at gmail.com>wrote:

>   Hi list!
>
> After looking at yet another forum thread which was possibly related to my
> problem, I discovered that if I first hide the popup after retrieving the
> information from the server, then call the body.update with the retrieved
> information, then show the popup, the popup window expands up and the
> anchors stays were I clicked on the map. So in the getPopupText(loc)
> function, I do this instead:
>
> // set the popup text information with ExtJS
>
> popup.hide();
> popup.body.update(wincontent);
> popup.show();
>
> Not sure why I need the second show as there's a show in the popup
> function. Whatever works I guess. Amazing... searched for a few days on this
> one as well as posted to OL and GeoExt forums. Have to copy this solution to
> the other forums.
>
> Well, now to Tabs. Hope not, but might be back. Thanks for everyone's times
> and something to keep in mind here for these GeoExt popups.
>
> Dave M
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110427/4802069a/attachment.htm 


More information about the Users mailing list