jQuery UI #7002
http://bugs.jqueryui.com/ticket/7002
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/7002">jQuery UI #7002</a> - <code>alsoResize</code> elements do not respect the <code>minHeight</code>, <code>maxHeight</code>, <code>minWidth</code>, or <code>maxWidth</code> options.
</p>
<p>To recreate: Resize box one - it will be constrained. Resize box two - box one will not respect the constraints.</p>
<div id="one"></div>
<div id="two"></div>
CSS
body { padding: 20px; }
p { line-height: 1.5; margin-bottom: 20px; }
#one, #two {
border: 1px solid black;
width: 100px;
height: 100px;
}
JavaScript
$('#one').resizable({
minHeight: 50,
minWidth: 50,
maxHeight: 200,
maxWidth: 200
});
$('#two').resizable({
alsoResize: '#one'
});