Bug Tracker

Ticket #1325 (closed bug: wontfix)

Opened 2 years ago

Last modified 9 months ago

Using Interfaces - Resizable

Reported by: terrybader Assigned to: stefan
Type: bug Priority: major
Milestone: 1.1.3 Component: interface
Version: 1.1.2 Keywords: Resizable for loop
Cc: Needs: Patch

Description

When using an outside loop with Resizable, Resizable overwrites the index value if 'i' is used for the index. I was able to prevent this by adding 'var' in the two for loops in the iresizable.js file. I will attach file.

i.e. directions = /n|ne|e|se|s|sw|w|nw/g; for (var i in el.resizeOptions.handlers) { // ADD var TO MAKE LOCAL

if (i.toLowerCase().match(directions) != null) {

if (el.resizeOptions.handlers[i].constructor == String) {

handle = jQuery(el.resizeOptions.handlers[i]); if (handle.size() > 0) {

el.resizeOptions.handlers[i] = handle.get(0);

}

}

if (el.resizeOptions.handlers[i].tagName) {

el.resizeOptions.handlers[i].resizeElement = el; el.resizeOptions.handlers[i].resizeDirection = i; jQuery(el.resizeOptions.handlers[i]).bind('mousedown', jQuery.iResize.start);

}

}

}

Attachments

iresizable2.js (15.5 kB) - added by terrybader 2 years ago.

Change History

Changed 2 years ago by terrybader

Changed 9 months ago by scott.gonzal

  • status changed from new to closed
  • resolution set to wontfix

Interface is no longer supported; consider switching to jQuery UI.

Note: See TracTickets for help on using tickets.