]> git.proxmox.com Git - extjs.git/blob - extjs/classic/classic/src/rtl/scroll/Scroller.js
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / classic / src / rtl / scroll / Scroller.js
1 Ext.define('Ext.rtl.scroll.Scroller', {
2 override: 'Ext.scroll.Scroller',
3
4 config: {
5 /**
6 * @cfg {Boolean} [rtl=false]
7 * `true` to enable scrolling of "right-to-left" content. This is typically
8 * configured automatically by an {@link Ext.Component} based on its inherited
9 * {@link Ext.Component#rtl rtl} state
10 * @member Ext.scroll.Scroller
11 */
12 rtl: null
13 },
14
15 // Empty updater - workaround for https://sencha.jira.com/browse/EXTJS-14574
16 updateRtl: Ext.emptyFn,
17
18 privates: {
19 updateSpacerXY: function(pos) {
20 var spacer = this.getSpacer();
21 if (this.getRtl()) {
22 spacer.rtlSetLocalXY(pos.x, pos.y);
23 } else {
24 spacer.setLocalXY(pos.x, pos.y);
25 }
26 }
27 }
28 });