Changeset 1211

Show
Ignore:
Timestamp:
07/02/09 23:43:13 (4 years ago)
Author:
tschaub
Message:

Revisit this. The legend panel gets notified of an update before an add if this is not in a timeout. Same issue as below. Needs more investigation. Alternatively, these background listeners could be dispensed with if a radio button were used instead of a checkbox.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js

    r1203 r1211  
    520520                candidate = candidate || all[0]; 
    521521                if(vis.length === 0) { 
    522                     candidate.get("layer").setVisibility(true); 
     522                    window.setTimeout(function() { 
     523                        candidate.get("layer").setVisibility(true); 
     524                    }, 0); 
    523525                } else if(vis.length > 1) { 
    524526                    Ext.each(vis, function(r) {