aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorkborchers <k_borchers@yahoo.com>2011-05-12 15:14:58 -0500
committerkborchers <k_borchers@yahoo.com>2011-05-12 15:14:58 -0500
commit331c4602a9a54d9bfa21c660feadeaa995537446 (patch)
treed9ccd3ecff48b5c9e74817ffd7ea9ab12163fea8 /ui/jquery.ui.dialog.js
parent1845015c09d527abde8095f8e2209f06d879a2b3 (diff)
downloadjquery-ui-331c4602a9a54d9bfa21c660feadeaa995537446.tar.gz
jquery-ui-331c4602a9a54d9bfa21c660feadeaa995537446.zip
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
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 2138a9a58..496118761 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -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