Why is the Secure Message Center pop-up at chase.com so small? I can't see any advantage of that.
What's even more annoying is that it insists to resize itself to be a tiny window. Even if you make it bigger, every time you click on one of the folders, "Compose Message", or choose something from a drop-down menu it resizes itself back.
It looks like the relevant code is located at
https://messagecenter.chase.com/smcP...window_size.js
Code:
function resizeWindow(requiredWidth)
{
if(document.documentElement &&
(document.documentElement.offsetWidth ||
document.documentElement.offsetHeight))
{
isIe = true;
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.offsetWidth;
myHeight = document.documentElement.offsetHeight;
}
else if (document.body &&
(document.body.offsetWidth || document.body.offsetHeight ) )
{
isIe = true;
//IE 4 compatible
myWidth = document.body.offsetWidth;
myHeight = document.body.offsetHeight;
}
if (isIe)
{
// i think the extra 4 pixesl in offsetWidth is the window borders
var currentWidth = myWidth - 4;
myHeight="504";
requiredWidth="649";
//alert("currentWidth= mywidth("+myWidth+") - 4="+currentWidth )
if (currentWidth < requiredWidth)
{
// window.resizeBy((requiredWidth - currentWidth), 0);
window.resizeTo(requiredWidth,myHeight);
}
if (currentWidth > requiredWidth)
{
window.resizeTo(requiredWidth, myHeight);
}
//alert("Exit from resizeWindow")
}
}
I am not a web developer, please correct me if I am wrong. It looks like (among other weird things) it sets isIe to true for everyone, regardless of whether you are using IE or not; then it sets the width to 649, ignoring the argument to the function resizeWindow().
Besides bad UI, the code simply looks unprofessional, and not very up-to-date.
/end rant