S
SPG
Hi,
We have a standard bit of code that resizes a window to the size of a table
and the header gif.
It works fine, until we go to XP, when we suddenly have horrid thick borders
for the window, and the screen size seems to be from the outside edge of the
window - hence the screen is resized about 5 points each way too small.
To get the height of a table, we use:
table.offsetHeight
and the height of a window:
window.screen.availHeight
Any ideas for an easy solution? I don't want to simply add n points to
whatever size we use as this will break the other versions of Windows. Is
there a way of getting the client area of a window? (Like in VB?)
Steve
We have a standard bit of code that resizes a window to the size of a table
and the header gif.
It works fine, until we go to XP, when we suddenly have horrid thick borders
for the window, and the screen size seems to be from the outside edge of the
window - hence the screen is resized about 5 points each way too small.
To get the height of a table, we use:
table.offsetHeight
and the height of a window:
window.screen.availHeight
Any ideas for an easy solution? I don't want to simply add n points to
whatever size we use as this will break the other versions of Windows. Is
there a way of getting the client area of a window? (Like in VB?)
Steve