]> git.proxmox.com Git - extjs.git/blob - extjs/classic/classic/src/rtl/panel/Bar.js
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / classic / src / rtl / panel / Bar.js
1 Ext.define('Ext.rtl.panel.Bar', {
2 override: 'Ext.panel.Bar',
3
4 rtlPositions: {
5 top: 'top',
6 right: 'left',
7 bottom: 'bottom',
8 left: 'right'
9 },
10
11 _rtlRotationClasses: {
12 1: Ext.baseCSSPrefix + 'title-rotate-left',
13 2: Ext.baseCSSPrefix + 'title-rotate-right'
14 },
15
16 _rtlRotationAngles: {
17 1: 270,
18 2: 90
19 },
20
21 onAdded: function (container, pos, instanced) {
22 var me = this;
23
24 if (me.isParentRtl()) {
25 me._rotationClasses = me._rtlRotationClasses;
26 me._rotationAngles = me._rtlRotationAngles;
27 }
28 this.callParent([container, pos, instanced]);
29 },
30
31 privates: {
32 getDockName: function () {
33 var me = this,
34 dock = me.dock;
35
36 return me.isParentRtl() ? me.rtlPositions[dock] : dock;
37 }
38 }
39 });