[OpenLayers-Trac] [OpenLayers] #2836: Permalink control: Incorrect display when using the div option

OpenLayers trac-20090302 at openlayers.org
Sun Sep 12 17:23:04 EDT 2010


#2836: Permalink control: Incorrect display when using the div option
-------------------------------+--------------------------------------------
 Reporter:  jorix              |       Owner:  crschmidt   
     Type:  bug                |      Status:  new         
 Priority:  minor              |   Milestone:  2.11 Release
Component:  Control.Permalink  |     Version:  2.10        
 Keywords:                     |       State:              
-------------------------------+--------------------------------------------
 It is easy to see by changing the example "control.html" with:
 {{{
 - new OpenLayers.Control.Permalink('permalink'),
 + new
 OpenLayers.Control.Permalink(null,null,,{div:document.getElementById('permalink')}),
 ...
 - <a style="float:right" href="" id="permalink">Permalink</a>
 + <div style="float:right" id="permalink"></div>
 }}}
 The control appears at the bottom of the page.

 This may have more relevance in 3.0 when use a single parameter to the
 constructor.

 In "Permalink.js" line
 {{{
 this.div.className = this.displayClass;
 }}}
 cause display problems when the "div" is external, and is redundant
 otherwise.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2836>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list