OpenLayers OpenLayers

Changeset 6405

Show
Ignore:
Timestamp:
02/28/08 18:15:20 (11 months ago)
Author:
euzuro
Message:

use getComputedStyle() to fix the stubburn css. brilliant. totally works now. scratch comment in previous commit re nixing overflow in the css. it is just fine where it is. thanks cr5 for help finding this wierd method

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/pop/lib/OpenLayers/Popup.js

    r6404 r6405  
    267267        if (OpenLayers.Util.getBrowserName() == 'firefox') { 
    268268            this.map.events.register("movestart", this, function() { 
    269                 var currentOverflow = this.contentDiv.style.overflow; 
     269                var style = document.defaultView.getComputedStyle( 
     270                    this.contentDiv, null 
     271                ); 
     272                var currentOverflow = style.getPropertyValue("overflow"); 
    270273                if (currentOverflow != "hidden") { 
    271274                    this.contentDiv._oldOverflow = currentOverflow;