Skip to main content

Search and Top Navigation

#8344 open bug ()

Opened May 22, 2012 07:04PM UTC

Last modified November 16, 2013 09:17PM UTC

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

Attachments (0)
Change History (3)

Changed October 11, 2012 02:52PM UTC by scottgonzalez comment:1

milestone: 1.9.02.0.0

Changed October 28, 2012 08:36PM UTC by tj.vantoll comment:2

keywords: → haspatch
status: newopen

Changed November 16, 2013 09:17PM UTC by dekajp comment:3

just for reference PR ->https://github.com/jquery/jquery-ui/pull/661