r1601 - trunk/ui

r1601 - trunk/ui


Author: scott.gonzalez
Date: Tue Jan 13 16:32:12 2009
New Revision: 1601
Modified:
trunk/ui/ui.dialog.js
Log:
Dialog: Removed Opera-specific dimension code (not needed with jQuery 1.3).
Modified: trunk/ui/ui.dialog.js
==============================================================================
--- trunk/ui/ui.dialog.js    (original)
+++ trunk/ui/ui.dialog.js    Tue Jan 13 16:32:12 2009
@@ -368,13 +368,11 @@
                    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 @@
            } 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 @@
            } 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';