I am trying to resize a DIV using box-size: border-box; Even if I allow changing the width, the DIV is compressed every time the resize event changes (height changes).
My css
.test{ width: 200px; height: 100px; border: 1px solid red; box-sizing: border-box; }
Javascript
$(document).ready(function() { $('.test').resizable({handles: 'e', stop: function(event, ui){ $('.wdt').text(ui.size.height); }}); });
HTML
<div class="test"> Test </div> <br/> <br/> <span>Height =</span> <span class='wdt'></span>
Resize it and you will see.
Can someone help me? JSFiddle: http://jsfiddle.net/WuQtw/4/
I tried jquery 1.8.x .. 1.9.x ... nothing has changed. I can not use box-size: content-box.
source share