Skip to content
Permalink
Browse files

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

Fixes #5221 - Buttons disappear after dragging dialog.
  • Loading branch information
scottgonzalez committed Feb 24, 2010
1 parent aa8f6c5 commit 83b16f528f98d33f1f9a719eb2a39d13a8176f14
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
},

0 comments on commit 83b16f5

Please sign in to comment.
You can’t perform that action at this time.