Skip to content

Commit

Permalink
Dialog: Removed Opera-specific dimension code (not needed with jQuery…
Browse files Browse the repository at this point in the history
… 1.3).
  • Loading branch information
scottgonzalez committed Jan 14, 2009
1 parent 8e5cbf6 commit 3741f4e
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions ui/ui.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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';
Expand All @@ -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';
Expand Down

0 comments on commit 3741f4e

Please sign in to comment.