jQuery UI #4286
http://bugs.jqueryui.com/ticket/4286
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/4286">jQuery UI #4286</a> - When the <code>grid</code> dimensions have different values it will break <code>containment</code>. To recreate simply resize the box to the south; the <code>resizable</code> will leave its <code>containment</code>.</p>
<div id="parent">
<div id="child"><div>
</div>
CSS
body { padding: 20px; }
p { line-height: 1.5; margin-bottom: 20px; }
#parent {
border: 1px solid black;
height: 300px;
width: 300px;
}
#child {
border: 1px solid red;
height: 100px;
width: 100px;
}
JavaScript
$('#child').resizable({
containment: '#parent',
grid: [13, 23]
});