Ticket #4147 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 5 years ago by eduardo

  • Status changed from new to closed
  • Resolution set to fixed

Fixed on r2083

comment:2 Changed 5 years ago by scott.gonzalez

  • Milestone changed from TBD to 1.6

Originally reported in  jquery-ui-dev.

Note: See TracTickets for help on using tickets.