I have this strange thing with the JQuery Resizable plugin:
Very simplified it comes down to this:
Everything works fine. Now the thing is i want to use a helper css class with te resizable plugin just for things to look better. But if i configure the helper, step 3 is not happening anymore? The previously resized div seems to have a forever static width???
In the following jsfiddle the issue can be reproduced: http://jsfiddle.net/g52p9/1/
Steps to reproduce:
Can anybody explain me why this is happening??
PS. Why does a link to jsfiddle.net must be accompanied by code?
Ok i figured it out. so here's the answer to my own question:
I initialize the resizable elements like this:
$(".resizable").resizable({
grid: 50,
handles: ' s',
helper: "ui-resizable-helper"
});
When the handles option is set to 's' (south), we can only resize the element vertically, so only the height changes. For some reason, without setting the helper option, the width attribute of the element remains unchanged, but when setting the helper (or animate) option, the width attribute gets set to the current width.