jQuery UI #8344
http://bugs.jqueryui.com/ticket/8344
by TJ VanToll
HTML
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<link href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" rel="stylesheet" />
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
<p><a href="http://bugs.jqueryui.com/ticket/8344">jQuery UI #8344</a> - Calling destroy on a <code>resizable</code> removes handles from inner <code>resizable</code> widgets.</p>
<div id="outer">
<div id="inner"></div>
</div>
CSS
body { padding: 20px; }
p { line-height: 1.5; margin-bottom: 20px; }
#outer {
height: 300px;
width: 300px;
border: 1px solid red;
}
#inner {
height: 100px;
width: 100px;
top: 50px;
left: 50px;
border: 1px solid blue;
}
JavaScript
$('#outer, #inner').resizable();
$('#outer').resizable('destroy');