aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-02-24 17:16:02 +0000
committerScott González <scott.gonzalez@gmail.com>2010-02-24 17:16:02 +0000
commit83b16f528f98d33f1f9a719eb2a39d13a8176f14 (patch)
tree69ad1d98b250f182f13db9e5c601ab518aa33e13 /ui/jquery.ui.dialog.js
parentaa8f6c5fc12c62cef9455c2bcf3f4314b1b9b212 (diff)
downloadjquery-ui-83b16f528f98d33f1f9a719eb2a39d13a8176f14.tar.gz
jquery-ui-83b16f528f98d33f1f9a719eb2a39d13a8176f14.zip
Dialog: Use .height() to calculate height of dialog before drag.
Fixes #5221 - Buttons disappear after dragging dialog.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js2
1 files changed, 1 insertions, 1 deletions
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);
},