[Commits] r1899 - core/trunk/geoext/lib/GeoExt/plugins

commits at geoext.org commits at geoext.org
Mon Feb 15 11:17:36 CET 2010


Author: ahocevar
Date: 2010-02-15 11:17:36 +0100 (Mon, 15 Feb 2010)
New Revision: 1899

Modified:
   core/trunk/geoext/lib/GeoExt/plugins/PrintExtent.js
Log:
just set the center of the print page when moving the transformation box. Increases dragging performance and avoids unwanted resizing due to floating point errors. r=elemoine (closes #222)

Modified: core/trunk/geoext/lib/GeoExt/plugins/PrintExtent.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/plugins/PrintExtent.js	2010-02-13 11:40:20 UTC (rev 1898)
+++ core/trunk/geoext/lib/GeoExt/plugins/PrintExtent.js	2010-02-15 10:17:36 UTC (rev 1899)
@@ -280,6 +280,10 @@
                             } else {
                                 e.object.setFeature(page.feature);
                             }
+                        } else if(e.center) {
+                            page.setCenter(OpenLayers.LonLat.fromString(
+                                e.center.toShortString()
+                            ));
                         } else {
                             page.fit(e.object.box);
                             var minScale = this.printProvider.scales.getAt(0);



More information about the Commits mailing list