]> git.proxmox.com Git - extjs.git/blob - extjs/classic/classic/src/rtl/panel/Title.js
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / classic / src / rtl / panel / Title.js
1 Ext.define('Ext.rtl.panel.Title', {
2 override: 'Ext.panel.Title',
3
4 getIconRenderData: function() {
5 var me = this,
6 data = me.callParent(),
7 header = me.ownerCt;
8
9 if (header && header.isParentRtl()) {
10 data.childElCls = ' ' + me._rtlCls;
11 }
12
13 return data;
14 },
15
16 privates: {
17 _getVerticalAdjustDirection: function() {
18 var header = this.ownerCt;
19 return (header && header.isParentRtl()) ? 'right' : 'left';
20 }
21 }
22 });