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