Ticket #695 (closed defect: inactive)

Opened 7 years ago

Last modified 5 years ago

popupwin.js height correction for IE XP SP2 status bar

Reported by: benDOTsimkinsATintsoftDOTch Owned by: akaEdge
Priority: normal Milestone:
Component: Documentation Version:
Severity: normal Keywords:
Cc:

Description

In IE on WinXP SP2, for any sites outside local intranet, the status bar is shown in popups whether you like it or not. Trawling the web I haven't managed to find a way of detecting this directly (apart from looking at the user agent - which in any case wouldn't distinguish between local intranet etc.), and haven't had the time to work out if it's possible to find out by a round about way (difference between document and window heights?) So I would suggest that on the fourth to last line of popupwin.js, we change from

self.window.resizeTo(w + 8, h + 35);

to

self.window.resizeTo(w + 8, h + 50);

Change History

Changed 7 years ago by bsimkinsATintsoftDOTch

Further info if anyone is interested in a solution to this problem.

As long as you know what height you want your window to be, (in my example, 300 wide by 200 high), here is a solution which works (at least in ffx and ie6):

1. Add this function somewhere in your js:

function sizeToContent() {
  body=document.getElementsByTagName('body')[0];
  if(body.clientHeight<body.scrollHeight)
    window.resizeTo(300, 200+(body.scrollHeight-body.clientHeight))  
}

2. Add following attributes to body:

 onload='window.resizeTo(300,200);sizeToContent()' onclick='sizeToContent()'

Changed 5 years ago by ray

  • status changed from new to closed
  • resolution set to inactive
Note: See TracTickets for help on using tickets.