The original element should change height with the generated wrapper automatically. Which version of jQuery UI are you using, which browser, and what doctype? Also, you can set the height to 'auto' to have it adjust as content changes.
On Jul 31, 4:43 am, Daniel <[email protected]> wrote: > Hi, I have an instance of dialog opened (with 300px width for > example). When I load (and inject) some ajax HTML code which is longer > then dialog window, there is a scrollbar at right (I get it). > > Is there some a way how to resize the dialog window automatically (and > prevent the scrollbars)? > > Just note. If I write event like: > $('#element').dialog('option', 'height', 500); > > the dialog height is changed (DIV element with "ui-dialog" class) but > the inner "#element" - doesn't. > > Thanks for any help. > Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
