Dialog: Use .height() to calculate height of dialog before drag.

Fixes #5221 - Buttons disappear after dragging dialog.
This commit is contained in:
Scott González 2010-02-24 17:16:02 +00:00
parent aa8f6c5fc1
commit 83b16f528f

View File

@ -332,7 +332,7 @@ $.widget("ui.dialog", {
handle: '.ui-dialog-titlebar', handle: '.ui-dialog-titlebar',
containment: 'document', containment: 'document',
start: function(event) { start: function(event) {
heightBeforeDrag = options.height; heightBeforeDrag = options.height === "auto" ? "auto" : $(this).height();
$(this).height($(this).height()).addClass("ui-dialog-dragging"); $(this).height($(this).height()).addClass("ui-dialog-dragging");
self._trigger('dragStart', event); self._trigger('dragStart', event);
}, },