[Commits] r2557 - extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux
commits at geoext.org
commits at geoext.org
Wed Jan 12 08:32:11 CET 2011
Author: elemoine
Date: 2011-01-12 08:32:11 +0100 (Wed, 12 Jan 2011)
New Revision: 2557
Modified:
extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js
Log:
error when SimplePrint is in an accordion and when loading caps with XHR, r=ahocevar (closes #395)
Modified: extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js
===================================================================
--- extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js 2011-01-12 07:31:10 UTC (rev 2556)
+++ extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js 2011-01-12 07:32:11 UTC (rev 2557)
@@ -105,6 +105,15 @@
/** private: method[initComponent]
*/
initComponent: function() {
+
+ // This is a workaround for an Ext issue. When the SimplePrint
+ // is an accordion's item an error occurs on expand if
+ // the fbar is created later, i.e. outside initComponent. So the
+ // problem triggers when the capabilities are loaded using
+ // XHR. The workaround involves forcing the creation of
+ // the fbar as part of initComponent.
+ this.fbar = this.fbar || [];
+
GeoExt.ux.SimplePrint.superclass.initComponent.call(this);
this.printPage = new GeoExt.data.PrintPage({
More information about the Commits
mailing list