r1184 - trunk/ui
r1184 - trunk/ui
Author: scott.gonzalez
Date: Fri Dec 19 12:34:54 2008
New Revision: 1184
Modified:
trunk/ui/ui.dialog.js
Log:
Dialog: Fixed #3221: User outerWidth/Height for positioning.
Modified: trunk/ui/ui.dialog.js
==============================================================================
--- trunk/ui/ui.dialog.js (original)
+++ trunk/ui/ui.dialog.js Fri Dec 19 12:34:54 2008
@@ -335,11 +335,11 @@
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 @@
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;
}
}