Opened 11 years ago

Last modified 9 years ago

#8344 open bug

Resizable: Destroy function removing ui-resizable-handle from inner containers

Reported by: gizmovation Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.resizable Version: 1.8.20
Keywords: haspatch Cc:
Blocked by: Blocking:

Description

When you have an outter div that is resizable that contains an inner div that is also resizable and attept to call $('#outter').resizable('destroy'), the ui-resizable-handle is removed from the inner div as well.

The root of the problem is in the destroy function in jquery.ui.resizable.js on line 198 (as of JQuery UI v1.8.20).

Notice that it is calling:

.find('.ui-resizable-handle').remove();

This should be changed instead to:

.children('.ui-resizable-handle').remove();

This is posted in reference to the stack overflow question here: http://stackoverflow.com/questions/10707661/remove-specific-resize-handler-jquery

Change History (3)

comment:1 Changed 10 years ago by Scott González

Milestone: 1.9.02.0.0

comment:2 Changed 10 years ago by tj.vantoll

Keywords: haspatch added
Status: newopen

comment:3 Changed 9 years ago by dekajp

Note: See TracTickets for help on using tickets.