[OpenLayers-Trac] [OpenLayers] #698: add close box option to AnchoredBubble

OpenLayers trac at openlayers.org
Tue May 15 11:08:07 EDT 2007


#698: add close box option to AnchoredBubble
---------------------------+------------------------------------------------
  Reporter:  johnwebbcole  |       Owner:               
      Type:  bug           |      Status:  new          
  Priority:  minor         |   Milestone:  2.4 Release  
 Component:  general       |     Version:  2.4 RC3      
Resolution:                |    Keywords:  AnchoredPopup
---------------------------+------------------------------------------------
Comment (by johnwebbcole):

 On the mailing list, Gints suggested the following change to corner.js
 which should also work:

 lib/Rico/Corner.js (from line: 99) change to:
 -------------------------------------------------------------------------------------------
 //var topRico = theDiv.parentNode.childNodes[0];
 var topRico = theDiv.parentNode.firstChild;
 //theDiv would be theDiv.parentNode.childNodes[1]
 //var bottomRico = theDiv.parentNode.childNodes[2];
 var bottomRico = theDiv.parentNode.lastChild;
 -------------------------------------------------------------------------------------------

 I don't know how this would effect anything else, but it seems less
 intrusive than my suggestion.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/698#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list