From 83b16f528f98d33f1f9a719eb2a39d13a8176f14 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 24 Feb 2010 17:16:02 +0000 Subject: Dialog: Use .height() to calculate height of dialog before drag. Fixes #5221 - Buttons disappear after dragging dialog. --- ui/jquery.ui.dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/jquery.ui.dialog.js') diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 0d48c1cf7..2e91a9e5a 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -332,7 +332,7 @@ $.widget("ui.dialog", { handle: '.ui-dialog-titlebar', containment: 'document', start: function(event) { - heightBeforeDrag = options.height; + heightBeforeDrag = options.height === "auto" ? "auto" : $(this).height(); $(this).height($(this).height()).addClass("ui-dialog-dragging"); self._trigger('dragStart', event); }, -- cgit v1.2.3