mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Create modal overlay after dialog is shown and check scrollHeight and offsetHeight in all IE versions. Fixed #4995 - Modal Dialog's overlay dissapears in IE when content is tall
This commit is contained in:
parent
1845015c09
commit
331c4602a9
6
ui/jquery.ui.dialog.js
vendored
6
ui/jquery.ui.dialog.js
vendored
@ -281,10 +281,10 @@ $.widget("ui.dialog", {
|
||||
options = self.options,
|
||||
uiDialog = self.uiDialog;
|
||||
|
||||
self.overlay = options.modal ? new $.ui.dialog.overlay( self ) : null;
|
||||
self._size();
|
||||
self._position( options.position );
|
||||
uiDialog.show( options.show );
|
||||
self.overlay = options.modal ? new $.ui.dialog.overlay( self ) : null;
|
||||
self.moveToTop( true );
|
||||
|
||||
// prevent tabbing out of modal dialogs
|
||||
@ -755,8 +755,8 @@ $.extend( $.ui.dialog.overlay, {
|
||||
height: function() {
|
||||
var scrollHeight,
|
||||
offsetHeight;
|
||||
// handle IE 6
|
||||
if ( $.browser.msie && $.browser.version < 7 ) {
|
||||
// handle IE
|
||||
if ( $.browser.msie ) {
|
||||
scrollHeight = Math.max(
|
||||
document.documentElement.scrollHeight,
|
||||
document.body.scrollHeight
|
||||
|
Loading…
Reference in New Issue
Block a user