OpenLayers OpenLayers

Changeset 6808

Show
Ignore:
Timestamp:
04/07/08 11:46:59 (5 months ago)
Author:
tcoulter
Message:

Adding another block to force a reflow after the style has been set to "visible." This successfully reduces the flicker within the WFS layer. Not sure how it affects other code, however, though I'd guess it'd be minimal.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/vespucci/lib/OpenLayers/Layer/Vector.js

    r6806 r6808  
    302302        if (!dragging) { 
    303303            this.renderer.root.style.visibility = "hidden"; 
     304            // force a reflow on gecko based browsers to actually hide the svg 
     305            if (navigator.userAgent.toLowerCase().indexOf("gecko") != -1) { 
     306                this.div.scrollLeft = this.div.scrollLeft; 
     307            } 
    304308             
    305309            this.div.style.left = -parseInt(this.map.layerContainerDiv.style.left) + "px"; 
     
    309313             
    310314            this.renderer.root.style.visibility = "visible"; 
     315             
     316            // force a reflow on gecko based browsers to actually hide the svg 
     317            if (navigator.userAgent.toLowerCase().indexOf("gecko") != -1) { 
     318                this.div.scrollLeft = this.div.scrollLeft; 
     319            } 
    311320        } 
    312321