aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-14 00:32:12 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-14 00:32:12 +0000
commit3741f4ee042c17a8d25e987b5c9154f196a959e0 (patch)
tree5ffa4d4460903d049f0fe557bcb1eedbe7bedc3e /ui/ui.dialog.js
parent8e5cbf60594f3adb83e1d6ec148ffe9b4c6f37cb (diff)
downloadjquery-ui-3741f4ee042c17a8d25e987b5c9154f196a959e0.tar.gz
jquery-ui-3741f4ee042c17a8d25e987b5c9154f196a959e0.zip
Dialog: Removed Opera-specific dimension code (not needed with jQuery 1.3).
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r--ui/ui.dialog.js18
1 files changed, 2 insertions, 16 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index 435695011..38c24c596 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -368,13 +368,11 @@ $.widget("ui.dialog", {
pTop += 0;
break;
case 'bottom':
- // Opera check fixes #3564, can go away with jQuery 1.3
- pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight();
+ pTop += wnd.height() - this.uiDialog.outerHeight();
break;
default:
case 'middle':
- // Opera check fixes #3564, can go away with jQuery 1.3
- pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight()) / 2;
+ pTop += (wnd.height() - this.uiDialog.outerHeight()) / 2;
}
}
@@ -578,12 +576,6 @@ $.extend($.ui.dialog.overlay, {
} else {
return scrollHeight + 'px';
}
- // handle Opera
- } else if ($.browser.opera) {
- return Math.max(
- window.innerHeight,
- $(document).height()
- ) + 'px';
// handle "good" browsers
} else {
return $(document).height() + 'px';
@@ -607,12 +599,6 @@ $.extend($.ui.dialog.overlay, {
} else {
return scrollWidth + 'px';
}
- // handle Opera
- } else if ($.browser.opera) {
- return Math.max(
- window.innerWidth,
- $(document).width()
- ) + 'px';
// handle "good" browsers
} else {
return $(document).width() + 'px';