You're using old versions of jQuery and jQuery UI. Have you tried the code with the current versions of both (UI 1.7.2 and jQuery 1.3.2)?
Also I don't recommend using packed versions of jQuery or UI. Use minified versions instead, and consider loading them using the Google Ajax Libraries API <http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery>. -Mike On Thu, Nov 19, 2009 at 9:53 AM, max.davis <max.da...@curotek.com> wrote: > > I am having the same issue. Can someone post a nice temporary fix for this > to > use until they fix this bug? > > - Max > > > NeilM-2 wrote: > > > > > > Using the jQuery 1.6rc4 code-line I am having a problem getting a > > dialog box to maintain its size when it is closed and reopened. The > > first, third, fifth... openings render the dialog box at the specified > > height, but the second, fourth, sixth... opening reduce the height of > > the dialog box. > > > > I'm not sure if this is a bug or to do with the way I am structuring > > the code. > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// > > www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > > <head> > > <meta http-equiv="Content-Type" content="text/html; > > charset=iso-8859-1" /> > > <title>jQuery.UI.Dialog</title> > > > > <link rel="stylesheet" type="text/css" > href="../../css/html.css"></ > > link> > > <link rel="stylesheet" type="text/css" > href="flora.dialog.css"></ > > link> > > > > <script language="JavaScript" type="text/javascript" > src="../../ > > jQuery/jquery-1.2.6.pack.js"></script> > > <script language="JavaScript" type="text/javascript" > src="../../ > > jQuery.UI/jquery-ui-dialog-1.6rc4.packed.js"></script> > > > > <script type="text/javascript"> > > $(function() { > > var $dlg = $("#dlg").dialog({ > > title: "My Test Dialog" > > , autoOpen: false > > , dialogClass: "flora" > > , modal: false > > , overlay: { > > opacity: 0.5 > > , background: '#000' > > } > > , width: 300 > > , height: 200 > > }); > > > > $("#openDialog").click(function() { > > $dlg.dialog("open"); > > }); > > > > $("#closeDialog").click(function() { > > $dlg.dialog("close"); > > }); > > }); > > </script> > > </head> > > <body> > > <div id="pageFrame"> > > <h1>jQuery.UI.Dialog</h1> > > <p><input id="openDialog" type="button" value="Open > Dialog" /></p> > > <p><input id="closeDialog" type="button" > value="Close Dialog" /></ > > p> > > <div id="dlg"> > > This is my dialog! > > </div> > > </div> > > </body> > > </html> > > > > --~--~---------~--~----~------------~-------~--~----~ > > You received this message because you are subscribed to the Google Groups > > "jQuery Development" group. > > To post to this group, send email to jquery-dev@googlegroups.com > > To unsubscribe from this group, send email to > > jquery-dev+unsubscr...@googlegroups.com<jquery-dev%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > > http://groups.google.com/group/jquery-dev?hl=en > > -~----------~----~----~----~------~----~------~--~--- > > > > > > > > -- > View this message in context: > http://old.nabble.com/Dialog-box-not-honouring-height-when-re-opened-tp21258793s27240p26421418.html > Sent from the jQuery Dev List mailing list archive at Nabble.com. > > -- > > You received this message because you are subscribed to the Google Groups > "jQuery Development" group. > To post to this group, send email to jquery-...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-dev+unsubscr...@googlegroups.com<jquery-dev%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/jquery-dev?hl=. > > > -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=.