/** * @override Ext.rtl.layout.ContextItem * This override adds RTL support to Ext.layout.ContextItem. */Ext.define('Ext.rtl.layout.ContextItem', { override: 'Ext.layout.ContextItem', addPositionStyles: function(styles, props) { var x = props.x, y = props.y, count = 0; if (x !== undefined) { styles[this.parent.target.getInherited().rtl ? 'right' : 'left'] = x + 'px'; ++count; } if (y !== undefined) { styles.top = y + 'px'; ++count; } return count; } });