X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/src/chart/Mask.js diff --git a/src/chart/Mask.js b/src/chart/Mask.js index e0193d04..d1e7d0c6 100644 --- a/src/chart/Mask.js +++ b/src/chart/Mask.js @@ -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