[OpenLayers-Trac] [OpenLayers] #1479: Popup.FramedCloud reports error in setContentHTML
OpenLayers
trac at openlayers.org
Tue Apr 1 16:48:56 EDT 2008
#1479: Popup.FramedCloud reports error in setContentHTML
----------------------+-----------------------------------------------------
Reporter: elemoine | Owner:
Type: feature | Status: new
Priority: minor | Milestone:
Component: general | Version: 2.6 RC1
Keywords: | State:
----------------------+-----------------------------------------------------
The error:
"position has no properties" Framed.js line 254
My code looks like that:
{{{
popup = new OpenLayers.Popup.FramedCloud(...);
popup.setContentHTML(html);
map.addPopup(popup);
}}}
The error occurs in {{{setContentHTML}}}.
The code problem is: setContentHTML -> setSize -> updateBlocks -> BUG!
because this.relativePosition is null at this point. popup.moveTo hasn't
been called yet.
The workaround is just to not use setContentHTML and always pass the html
to the constructor.
--
Ticket URL: <http://trac.openlayers.org/ticket/1479>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list