Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / src / chart / Mask.js
index e0193d0..d1e7d0c 100644 (file)
@@ -47,6 +47,7 @@ If you are unsure which license is appropriate for your use, please contact the
  * 
  */
 Ext.define('Ext.chart.Mask', {
+    require: ['Ext.chart.MaskLayer'],
     /**
      * Creates new Mask.
      * @param {Object} config (optional) Config object.
@@ -193,12 +194,7 @@ Ext.define('Ext.chart.Mask', {
                 width: abs(width),
                 height: abs(height)
             };
-            me.mask.updateBox({
-                x: posX - abs(width),
-                y: posY - abs(height),
-                width: abs(width),
-                height: abs(height)
-            });
+            me.mask.updateBox(me.maskSelection);
             me.mask.show();
             me.maskSprite.setAttributes({
                 hidden: true