]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('Ext.rtl.panel.Title', {\r |
2 | override: 'Ext.panel.Title',\r | |
3 | \r | |
4 | getIconRenderData: function() {\r | |
5 | var me = this,\r | |
6 | data = me.callParent(),\r | |
7 | header = me.ownerCt;\r | |
8 | \r | |
9 | if (header && header.isParentRtl()) {\r | |
10 | data.childElCls = ' ' + me._rtlCls;\r | |
11 | }\r | |
12 | \r | |
13 | return data;\r | |
14 | },\r | |
15 | \r | |
16 | privates: {\r | |
17 | _getVerticalAdjustDirection: function() {\r | |
18 | var header = this.ownerCt;\r | |
19 | return (header && header.isParentRtl()) ? 'right' : 'left';\r | |
20 | }\r | |
21 | }\r | |
22 | });\r |