[OpenLayers-Trac] [OpenLayers] #514: Safari: getCurrentSize fails on display:none elements

OpenLayers trac at openlayers.org
Mon Mar 5 01:53:23 EST 2007


#514: Safari: getCurrentSize fails on display:none elements
-----------------------+----------------------------------------------------
 Reporter:  crschmidt  |       Owner:  crschmidt  
     Type:  feature    |      Status:  new        
 Priority:  major      |   Milestone:  2.4 Release
Component:  general    |     Version:  SVN        
 Keywords:             |  
-----------------------+----------------------------------------------------
 Elements with display:none set will fail to return the correct value for
 getCurrentSize in Safari. Hidden elements return 'NaN' for clientWidth (as
 opposed to '0' from other browsers) so the fallback logic in
 getCurrentSize is never executed. The Overview Map not working in Safari
 is a symptom of this bug: because the overview map element is created as
 display:none, the map has 0 size on creation, and is therefore not
 displayed correctly.

 Confirmed with svn r2301.

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


More information about the Trac mailing list