[Commits] r1588 - sandbox/ahocevar/playground/ux/Printing/ux/data
commits at geoext.org
commits at geoext.org
Wed Dec 16 00:21:37 CET 2009
Author: ahocevar
Date: 2009-12-16 00:21:37 +0100 (Wed, 16 Dec 2009)
New Revision: 1588
Modified:
sandbox/ahocevar/playground/ux/Printing/ux/data/PrintPage.js
Log:
suspend events before setting scale in fitPage
Modified: sandbox/ahocevar/playground/ux/Printing/ux/data/PrintPage.js
===================================================================
--- sandbox/ahocevar/playground/ux/Printing/ux/data/PrintPage.js 2009-12-15 22:48:24 UTC (rev 1587)
+++ sandbox/ahocevar/playground/ux/Printing/ux/data/PrintPage.js 2009-12-15 23:21:37 UTC (rev 1588)
@@ -172,6 +172,7 @@
* scale that entirely fits the extent.
*/
fitPage: function(map) {
+ this.suspendEvents();
this.setCenter(map.getCenter());
var extent = map.getExtent();
var scale;
@@ -179,6 +180,7 @@
scale = rec;
return !extent.containsBounds(this.calculatePageBounds(scale));
}, this)
+ this.resumeEvents();
this.setScale(scale);
},
More information about the Commits
mailing list