mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Use .height() to calculate height of dialog before drag.
Fixes #5221 - Buttons disappear after dragging dialog.
This commit is contained in:
parent
aa8f6c5fc1
commit
83b16f528f
2
ui/jquery.ui.dialog.js
vendored
2
ui/jquery.ui.dialog.js
vendored
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user