Modified:
    trunk/ui/ui.dialog.js
Log:
Dialog: fix dialog height from being reset after drag in Safari. related to  
r2152 and #4252
Modified: trunk/ui/ui.dialog.js
==============================================================================
--- trunk/ui/ui.dialog.js	(original)
+++ trunk/ui/ui.dialog.js	Tue Mar  3 02:29:18 2009
@@ -341,6 +341,8 @@
  			handles: resizeHandles,
  			stop: function() {
  				$(this).removeClass("ui-dialog-resizing");
+				options.height = $(this).height();
+				options.width = $(this).width();
  				(options.resizeStop && options.resizeStop.apply(self.element[0],  
arguments));
  				$.ui.dialog.overlay.resize();
  			}
I'm going to have to agree with Scott on this one. Users *have* been
known to do crazy things like resize a dialog just for the sake of
doing so. If we're using a dialog for say, data entry in an enterprise
app, we'll want to enforce that the dialog always looks the same when
it opens, unless the user chooses to resize it.
$(selector).data('initWidth', 500).dialog({
    open: function(){ 
        var $this = $(this);
        $this.dialog('option', 'width', $this.data('initWidth'));
    }
});
In this case, aren't options just that, optional? They exist to expand
the functionality of the plugin for different use-cases, do they not?
Please do explain why you're against adding an option for this. I
think hearing arguments for both positions would be beneficial.
Sounds like I'm the lone proponent of something built into the plugin
for this one :) Call it a difference in dev methodology I suppose.
Good discussion, none the less.