Skip to main content

Search and Top Navigation

#4147 closed bug (fixed)

Opened February 15, 2009 02:42PM UTC

Closed February 15, 2009 02:52PM UTC

Last modified February 15, 2009 03:20PM UTC

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.

Attachments (0)
Change History (2)

Changed February 15, 2009 02:52PM UTC by eduardo comment:1

resolution: → fixed
status: newclosed

Fixed on r2083

Changed February 15, 2009 03:20PM UTC by scottgonzalez comment:2

milestone: TBD1.6

Originally reported in jquery-ui-dev.