Ext.define('Ext.rtl.scroll.Scroller', {
override: 'Ext.scroll.Scroller',
config: {
rtl: null
},
updateRtl: Ext.emptyFn,
privates: {
convertX: function(x) {
var element;
if (this.getRtl()) {
element = this.getElement();
if (element) {
x = element.rtlNormalizeScrollLeft(x);
}
}
return x;
},
getElementScroll: function(element) {
return this.getRtl() ? element.rtlGetScroll() : element.getScroll();
},
translateSpacer: function(x, y) {
if (this.getRtl()) {
this.getSpacer().dom.style.right = (x - 1) + 'px';
this.callParent([null, y]);
} else {
this.callParent([x, y]);
}
}
}
});