[Commits] r1882 - core/trunk/geoext/lib/GeoExt/widgets

commits at geoext.org commits at geoext.org
Thu Feb 11 17:17:13 CET 2010


Author: ahocevar
Date: 2010-02-11 17:17:13 +0100 (Thu, 11 Feb 2010)
New Revision: 1882

Modified:
   core/trunk/geoext/lib/GeoExt/widgets/ZoomSlider.js
Log:
fixed the way maxValue is set. r=elemoine (closes #218)


Modified: core/trunk/geoext/lib/GeoExt/widgets/ZoomSlider.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/ZoomSlider.js	2010-02-11 13:45:25 UTC (rev 1881)
+++ core/trunk/geoext/lib/GeoExt/widgets/ZoomSlider.js	2010-02-11 16:17:13 UTC (rev 1882)
@@ -225,7 +225,8 @@
             this.minValue = layer.minZoomLevel || 0;
         }
         if(this.initialConfig.maxValue === undefined) {
-            this.maxValue = layer.maxZoomLevel || layer.numZoomLevels - 1;
+            this.maxValue = layer.minZoomLevel == null ?
+                layer.numZoomLevels - 1 : layer.maxZoomLevel;
         }
     },
     



More information about the Commits mailing list