Bug Tracker

Modify

Ticket #1325 (closed bug: wontfix)

Opened 6 years ago

Last modified 3 years ago

Using Interfaces - Resizable

Reported by: terrybader Owned by: stefan
Priority: major Milestone: 1.1.3
Component: interface Version: 1.1.2
Keywords: Resizable for loop Cc:
Blocking: Blocked by:

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 Download (15.5 KB) - added by terrybader 6 years ago.

Change History

Changed 6 years ago by terrybader

comment:1 Changed 5 years ago by scott.gonzal

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

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.