[Commits] r1211 - apps/opengeo/geoexplorer/trunk/src/script/app
commits at geoext.org
commits at geoext.org
Thu Jul 2 23:43:14 CEST 2009
Author: tschaub
Date: 2009-07-02 23:43:13 +0200 (Thu, 02 Jul 2009)
New Revision: 1211
Modified:
apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js
Log:
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.
Modified: apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js 2009-07-02 20:50:40 UTC (rev 1210)
+++ apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js 2009-07-02 21:43:13 UTC (rev 1211)
@@ -519,7 +519,9 @@
if(all.length) {
candidate = candidate || all[0];
if(vis.length === 0) {
- candidate.get("layer").setVisibility(true);
+ window.setTimeout(function() {
+ candidate.get("layer").setVisibility(true);
+ }, 0);
} else if(vis.length > 1) {
Ext.each(vis, function(r) {
if(r !== candidate) {
More information about the Commits
mailing list