Skip to content

Commit

Permalink
fix popup position in IE
Browse files Browse the repository at this point in the history
Test Plan:
In any IE, trigger the login popup-

Busted in prod:
http://fbrell.com/

Fixed after this:
http://fbrell.com/?server=sb

DiffCamp Revision: 117797
Reviewed By: brent
CC: platform-diffs@lists, lshepard, brent, naitik, mattwkelly, selekman
Revert Plan:
OK
  • Loading branch information
daaku committed May 25, 2010
1 parent d154c82 commit 7122b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/ui.js
Expand Up @@ -252,10 +252,10 @@ FB.provide('UIServer', {
: window.screenTop,
outerWidth = typeof window.outerWidth != 'undefined'
? window.outerWidth
: document.body.clientWidth,
: document.documentElement.clientWidth,
outerHeight = typeof window.outerHeight != 'undefined'
? window.outerHeight
: (document.body.clientHeight - 22),
: (document.documentElement.clientHeight - 22), // 22= IE toolbar height
width = call.size.width,
height = call.size.height,
left = parseInt(screenX + ((outerWidth - width) / 2), 10),
Expand Down

0 comments on commit 7122b97

Please sign in to comment.