Skip to content

Commit 0413807

Browse files
committed
Dialog: Don't allow the height of the content area to be negative.
1 parent 615127e commit 0413807

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/ui.dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ $.widget("ui.dialog", {
469469
minHeight: Math.max(options.minHeight - nonContentHeight, 0),
470470
height: options.height == 'auto'
471471
? 'auto'
472-
: options.height - nonContentHeight
472+
: Math.max(options.height - nonContentHeight, 0)
473473
});
474474
}
475475
});

0 commit comments

Comments
 (0)