closed → reopened
Replying to [comment:2 jquery-dev]:
Replying to [comment:1 scott.gonzalez]: > We don't support setting positioning on the content element inside a dialog. You could try using the layout plugin on a child of the content div. Feel free to discuss possible solutions on the forum if you have ideas. I wasn't asking for solutions. I already have work-arounds, including the one posted above ''and'' the use of an inner-wrapper div. I posted a ticket because this is an obvious (and simple) deficiency in the widget's code, which I assumed there would be interest in addressing. I'm quite surprised that a major weakness in a key widget would be excused with "we don't support positioning". I guess I'll have to fix it myself. Unfortunately it will take ''me'' much longer than the 10 minutes it would take the authors of the widget, but so be it.
OK, I found the error and submitted a patch. As expected, the bug was really in the Resizables widget, not Dialog. The root cause was a logic error in the alsoResize subroutine that applied 'position' to child elements of the main resizable element. This bug would have affected any use-case like this - not just the dialog.
I posted the patch as a ticket rather than submitting it directly to the source. I trust it will find its way from there.
So you no longer need to tell users "Dialog does not support setting positioning on the content element inside a dialog". That was only due to this bug. You can now use any positioning desired, especially 'relative'. This makes it easier to create more sophisticated dialogs because the content-element can now properly ''contain'' floated and absolutely positioned elements.
'''I have reopened this ticked because "won't fix" is no longer accurate.''' Once the Resizable patch is merged, this ticked can be marked 'fixed' instead, avoiding any future confusion.