mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed #3879
This commit is contained in:
parent
6b37cd7bc6
commit
279f6599a4
@ -215,7 +215,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
|||||||
_mouseStart: function(event) {
|
_mouseStart: function(event) {
|
||||||
|
|
||||||
var o = this.options, iniPos = this.element.position(), el = this.element,
|
var o = this.options, iniPos = this.element.position(), el = this.element,
|
||||||
num = function(v) { return parseInt(v, 10) || 0; }, ie6 = $.browser.msie && $.browser.version < 7;
|
num = function(v) { return parseInt(v, 10) || 0; };
|
||||||
|
|
||||||
this.resizing = true;
|
this.resizing = true;
|
||||||
this.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
|
this.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
|
||||||
@ -245,8 +245,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
|||||||
//Store needed variables
|
//Store needed variables
|
||||||
this.offset = this.helper.offset();
|
this.offset = this.helper.offset();
|
||||||
this.position = { left: curleft, top: curtop };
|
this.position = { left: curleft, top: curtop };
|
||||||
this.size = this._helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
|
this.size = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
|
||||||
this.originalSize = this._helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
|
this.originalSize = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
|
||||||
this.originalPosition = { left: curleft, top: curtop };
|
this.originalPosition = { left: curleft, top: curtop };
|
||||||
this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };
|
this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };
|
||||||
this.originalMousePosition = { left: event.pageX, top: event.pageY };
|
this.originalMousePosition = { left: event.pageX, top: event.pageY };
|
||||||
|
Loading…
Reference in New Issue
Block a user