#4147 closed bug (fixed)
Resizable: Little jump when a resizable is about to reach the coordinate 0 (in x- or y-axis)
Reported by: | eduardo | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.7 |
Component: | ui.resizable | Version: | 1.6rc6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
_updateCache: function(data) {
var o = this.options; this.offset = this.helper.offset(); if (data.left) this.position.left = data.left; if (data.top) this.position.top = data.top; if (data.height) this.size.height = data.height; if (data.width) this.size.width = data.width;
},
should be:
_updateCache: function(data) {
var o = this.options; this.offset = this.helper.offset(); if (data.left !== undefined ) this.position.left = data.left; if (data.top !== undefined ) this.position.top = data.top; if (data.height !== undefined ) this.size.height = data.height; if (data.width !== undefined ) this.size.width = data.width;
},
This bug makes a little jump when a resizable is about to reach the coordinate 0 (in x- or y-axis).
The possible ranges of values (for top and left) are - inf...-1,1...inf, because if ( data.left ) is false when data.left is zero.
Fixed on r2083