Issue with the twitter oauth window (api.twitter.com/oauth/authorize?oauth_token=xxx)


#1

Hi
we load this page in a popup window, but we found that in IE9 it resized popup window to a really narrow size. We found the code where you calculate the width of the content and resize the widow, which is below:

vpw = window.innerWidth || document.documentElement.clientWidth + 29 || document.body.clientWidth + 29;
window.resizeTo(vpw, content.offsetHeight + (browser - vph) + buffer);

As we tested, window.innerWidth return undefined, document.documentElement.clientWidth return 0, document.body.clientWidth return a correct value. So the variable “vpw” is 29 after running this code, then it change the width of the window to 29px. Any idea?