ui-dialog alsoResize

ui-dialog alsoResize

I am boxing the box model again and have thrown in the towel on CSS - I will need JS to flex a component that I am displaying inside my ui-dialog.  Now, ui-dialog is also a ui-resizable and I should thus have access to all the resizable options.  Alas, the ui-dialog interface has made a hash of things  (I think it should simply take { draggable: { draggable options }, resizable: { resizable options }, dialog options }).  However, it occurred to me that I should be able to go in after init and patch things up like so:

var alsoResize= uiDialog.resizable("option","alsoResize").add(myDiv);
uiDialog.resizable("option","alsoResize",alsoResize);

It doesn't work, and I cannot understand why.  Tracing through Firebug, alsoResize gets the *correct* collection of ui-dialog-content and myDiv, but when it comes to _alsoResize, it only processes the first in the collection.  In fact, it only sees one.  That is, if I reverse the order or elements in alsoResize, the functionality breaks.

The fact that I can break it tells me that I am hitting the right spot.  Can someone please enlighten me as to why I am losing parts of my collection?

Thanks.

    • Topic Participants

    • olaf