[Users] GeoExt.Popup: Possible bug when unanchoing and then showing

Andreas Hocevar ahocevar at opengeo.org
Mon Mar 5 15:56:09 CET 2012


Hi,

what do you want to achieve with popup.show() after
popup.unanchorPopup()? It still should be shown after unanchoring.
Anyway, a nice fix for this would be two things:

1) an anchorPopup method, so an unanchored popup can be anchored again
2) fix the issue you encountered

Please create a ticket, or - even better - a pull request.

Thanks!
Andreas.

On Mon, Mar 5, 2012 at 3:40 PM, Marc Jansen <jansen at terrestris.de> wrote:
> Hi all,
>
> GeoExt 1.1 currently runs into an error, when the following sequence of
> actions happen on a GeoExt.Popup(). The issue can be tested with the online
> example here: http://api.geoext.org/1.1/examples/popup.html
>
> In a console type (after the popup has been opened via mouse click):
>
>   popup.unanchorPopup();
>
> and then
>
>   popup.show();
>
> Chrome says: " TypeError: Cannot call method 'getSize' of null" pointing
> towards line 259 of Popup.js wher the code reads:
>
>   ancSize = this.anc.getSize()
>
> I guess that this.anc is already nullified here, correct?
>
> Shall I file a bug report?
>
> Best regards,
> Marc
>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list