I am trying to make my dialog element resizable with jquery UI (latest) I have included the Jquery theme css and the latest Jquery UI library in my document.
But when i create my dialog HTML and insert in into my document the resizable function does not resize, the resize cursor is visible and also the resize handle is visible but when i drag nothing happens!
When i insert the HTML code for my dialog mannualy in my document and apply the resizable() plugin for that dialog the resizable() function works!
but when i insert the HTML code for my dialog with
$('body').append($('<div id="dialog">some text</div>'));
and then do this:
$('#dialog').resizable();
the handle is visible but it wont resize.
It seems resizable() plugin does not work for new elements in the DOM?
I have wasted my whole day searching for the solution :(
Does someone know what is happening!
** EDIT **
I found it!! the resizable() plugin fires an event "resize" on the resizable element, and my plugin has a listener for that event, i thought it was only fired when my window is resized.
now i need to alter my plugin and find out if the window is getting resized or if its an element. thanks anyway guys!