]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('Ext.rtl.resizer.SplitterTracker', {\r |
2 | override: 'Ext.resizer.SplitterTracker',\r | |
3 | \r | |
4 | getVertPrevConstrainLeft: function(o) {\r | |
5 | return (!this.splitter.getInherited().rtl !== !Ext.rootInheritedState.rtl) ? // jshint ignore:line\r | |
6 | ((o.prevCmp.maxWidth ? o.prevBox.right - o.prevCmp.maxWidth :\r | |
7 | o.nextBox.x + (o.nextCmp.minWidth || o.defaultMin)) - o.splitWidth) :\r | |
8 | this.callParent(arguments);\r | |
9 | },\r | |
10 | \r | |
11 | getVertPrevConstrainRight: function(o) {\r | |
12 | return (!this.splitter.getInherited().rtl !== !Ext.rootInheritedState.rtl) ? // jshint ignore:line\r | |
13 | o.prevBox.right - (o.prevCmp.minWidth || o.defaultMin) :\r | |
14 | this.callParent(arguments);\r | |
15 | },\r | |
16 | \r | |
17 | \r | |
18 | getVertNextConstrainLeft: function(o) {\r | |
19 | return (!this.splitter.getInherited().rtl !== !Ext.rootInheritedState.rtl) ? // jshint ignore:line\r | |
20 | o.nextBox.x + (o.nextCmp.minWidth || o.defaultMin) :\r | |
21 | this.callParent(arguments);\r | |
22 | },\r | |
23 | \r | |
24 | getVertNextConstrainRight: function(o) {\r | |
25 | return (!this.splitter.getInherited().rtl !== !Ext.rootInheritedState.rtl) ? // jshint ignore:line\r | |
26 | ((o.nextCmp.maxWidth ? o.nextBox.x + o.nextCmp.maxWidth :\r | |
27 | o.prevBox.right - (o.prevBox.minWidth || o.defaultMin)) + o.splitWidth) :\r | |
28 | this.callParent(arguments);\r | |
29 | },\r | |
30 | \r | |
31 | getResizeOffset: function() {\r | |
32 | var offset = this.getOffset('dragTarget');\r | |
33 | if (!this.splitter.getInherited().rtl !== !Ext.rootInheritedState.rtl) { // jshint ignore:line\r | |
34 | offset[0] = -offset[0];\r | |
35 | }\r | |
36 | return offset;\r | |
37 | }\r | |
38 | });\r |