]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Removed the height() tinkering which stops the dialog from shrinking. Fixes...
authorJay Merrifield <fracmak@gmail.com>
Fri, 27 May 2011 03:30:56 +0000 (23:30 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 27 May 2011 03:30:56 +0000 (23:30 -0400)
ui/jquery.ui.dialog.js

index 8d5f4f56fc433b39f69c4ddc731f33e08ba89fe9..84b2dd3b36f3723d81759d1aab896ee543f85ed0 100644 (file)
@@ -373,8 +373,7 @@ $.widget("ui.dialog", {
        _makeDraggable: function() {
                var self = this,
                        options = self.options,
-                       doc = $( document ),
-                       heightBeforeDrag;
+                       doc = $( document );
 
                function filteredUi( ui ) {
                        return {
@@ -388,9 +387,7 @@ $.widget("ui.dialog", {
                        handle: ".ui-dialog-titlebar",
                        containment: "document",
                        start: function( event, ui ) {
-                               heightBeforeDrag = options.height === "auto" ? "auto" : $( this ).height();
                                $( this )
-                                       .height( $( this ).height() )
                                        .addClass( "ui-dialog-dragging" );
                                self._trigger( "dragStart", event, filteredUi( ui ) );
                        },
@@ -403,8 +400,7 @@ $.widget("ui.dialog", {
                                        ui.position.top - doc.scrollTop()
                                ];
                                $( this )
-                                       .removeClass( "ui-dialog-dragging" )
-                                       .height( heightBeforeDrag );
+                                       .removeClass( "ui-dialog-dragging" );
                                self._trigger( "dragStop", event, filteredUi( ui ) );
                                $.ui.dialog.overlay.resize();
                        }