Changeset 4466
- Timestamp:
- 01/16/08 18:05:56 (11 months ago)
- Files:
-
- 1 modified
-
trunk/ui/current/ui.resizable.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/current/ui.resizable.js
r4378 r4466 165 165 166 166 var el = this.helper, o = this.options; 167 167 168 var change = function(a,b) { 168 var mod = (e['page'+(/(top|height)/.test(a) ? 'Y' : 'X')] - o.startPosition[(/(top|height)/.test(a) ? 'top' : 'left')]) * (b ? -1 : 1); 169 //Avoid opera's syntax bug 170 var page = 'page' + (/(top|height)/.test(a) ? 'Y' : 'X'), 171 startPos = (/(top|height)/.test(a) ? 'top' : 'left'); 172 173 var mod = (e[page] - o.startPosition[startPos]) * (b ? -1 : 1); 169 174 el.css(a, o['current'+(/(height|width)/.test(a) ? 'Size' : 'Position')][a] - mod); 170 175 };
