<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Andreas,<br>
<br>
Calling show() on an already shown element shouldn't raise errors,
though. Also if the sequence is <br>
<br>
popup.unanchorPopup();<br>
popup.hide();<br>
popup.show();<br>
<br>
the problem persists.<br>
<br>
I encountered this behaviour in an application where the mappanel
(with some popups) is inside a tab that is sometimes invisible. When
the mappanel is invisible, I hide all popups and show them again
when the mappanel is reshown. Until now I didn't make a distinction
between anchored or unanchored popups (for simplicity).<br>
<br>
Pull request I likely to come (possibly from someone else like me,
though).<br>
<br>
Thanks for the instant feedback and best regards,<br>
<br>
Marc<br>
<br>
<br>
<br>
On 05.03.2012 15:56, Andreas Hocevar wrote:
<blockquote
cite="mid:CAOiJ94hvHrr5DoAYKr0KNPbH8LRKbRB8NPifoe0Vs91wc+n91Q@mail.gmail.com"
type="cite">
<pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:jansen@terrestris.de"><jansen@terrestris.de></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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: <a class="moz-txt-link-freetext" href="http://api.geoext.org/1.1/examples/popup.html">http://api.geoext.org/1.1/examples/popup.html</a>
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
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
#signature {
color: #333 !important;
font-family: monospace;
font-size: 12px;
padding: 10px;
line-height: 1.5em;
}
#highlight-container {
padding: 5px;
width: 450px;
margin: 30px 0;
border-width: 0px 0 0px 0;
border-right-width: 0;
border-left-width: 0;
border-style: dotted;
border-color: #333;
}
#signature a,
#signature a:link,
#signature a:visited,
#signature a:hover,
#signature a:active {
color: darkblue !important;
}
#signature address {
font-style: normal;
}
#col-container {
width: 550px;
}
#col-1 {
width: 180px; float: left;
}
#col-2 {
width: 320px; float: left;
}
#col-clear {
clear: both; padding-top: 30px;
}
#signature img {
margin-top:10px;
}
#col-container p,
#col-container address {
margin: 4px 0 0 0;
}
#signature .no-margin {
margin: 0;
}
#highlight {
font-weight: bold;
margin-bottom: 2em;
}
</style>
<div id="signature">
<div id="col-container">
<div id="highlight">
<p> Bitte beachten Sie unsere neue Adresse:<br>
<br>
</p>
<address> Pützchens Chaussee 56<br>
53227 Bonn </address>
</div>
<div id="col-1"> <img
src="cid:part1.07020104.01010606@terrestris.de" alt="Logo
der terrestris GmbH & Co. KG" height="150" width="150">
</div>
<div id="col-2">
<p class="no-margin"> Dipl.-Geogr. Marc Jansen<br>
— Anwendungsentwickler —<br>
</p>
<address> terrestris GmbH & Co. KG<br>
Pützchens Chaussee 56<br>
53227 Bonn </address>
<p> Tel: +49 (0)228 / 96 28 99 -53<br>
Fax: +49 (0)228 / 96 28 99 -57<br>
</p>
<p> Email: <a href="mailto:jansen@terrestris.de">jansen@terrestris.de</a><br>
Web: <a href="http://www.terrestris.de">http://www.terrestris.de</a>
</p>
</div>
<div id="col-clear">
<p> Amtsgericht Bonn, HRA 6835<br>
Komplementärin: terrestris Verwaltungsgesellschaft mbH<br>
vertreten durch: Hinrich Paulsen, Till Adams <br>
</p>
</div>
</div>
</div>
</div>
</body>
</html>