/** * @override Ext.rtl.dom.Layer * This override adds RTL positioning methods to Ext.dom.Layer. */Ext.define('Ext.rtl.dom.Layer', { override: 'Ext.dom.Layer', rtlLocalXYNames: { get: 'rtlGetLocalXY', set: 'rtlSetLocalXY' }, rtlSetLocalX: function() { this.callParent(arguments); return this.sync(); }, rtlSetLocalXY: function() { this.callParent(arguments); return this.sync(); }, setRtl: function(rtl) { var me = this, shadow = me.shadow; me.localXYNames = rtl ? me.rtlLocalXYNames : Ext.dom.Layer.prototype.localXYNames; if (shadow) { shadow.localXYNames = me.localXYNames; } } });