Skip to content
Permalink
Browse files

Dialog: Fixed #3221: User outerWidth/Height for positioning.

  • Loading branch information
scottgonzalez committed Dec 19, 2008
1 parent d83bb90 commit 5a302934af8e2d24e20c669c3dc9e14b7bdd2e8a
Showing with 4 additions and 4 deletions.
  1. +4 −4 ui/ui.dialog.js
@@ -335,11 +335,11 @@ $.widget("ui.dialog", {
pLeft += 0;
break;
case 'right':
pLeft += wnd.width() - this.uiDialog.width();
pLeft += wnd.width() - this.uiDialog.outerWidth();
break;
default:
case 'center':
pLeft += (wnd.width() - this.uiDialog.width()) / 2;
pLeft += (wnd.width() - this.uiDialog.outerWidth()) / 2;
}
}
if (pos[1].constructor == Number) {
@@ -351,12 +351,12 @@ $.widget("ui.dialog", {
break;
case 'bottom':
// Opera check fixes #3564, can go away with jQuery 1.3
pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height();
pTop += ($.browser.opera ? window.innerHeight : 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.height()) / 2;
pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight()) / 2;
}
}

0 comments on commit 5a30293

Please sign in to comment.
You can’t perform that action at this time.