<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><BR >These are the measures that my pilot-probe-object is reporting for the width of client area in the following <BR>
browsers on Windows platform:<BR>
<BR>
<BR>
Browser: Explorer 6 Navigator 8 Opera 9 Firefox 1.5<BR>
<BR>
-------BROWSER MAXIMIZED-------<BR>
my screen 1920 1920 1920 1920 px<BR >--------------<BR >scrl Off -1916 -1920 -1914 -1920<BR >scrl on -1900 -1904 -1898 -1904<BR >----------------------------------------------------------------------------<BR >delta off -4 -0 -6 -0<BR >delta on -20 -16 -22 -16<BR>
<BR>
<BR>
-------BROWSER RESTORED-------<BR >Window 1/2 960 960 960 960 px<BR >--------------<BR >scrl off 948 952 946 952<BR >scrl on 932 936 930 936<BR >-----------------------------------------------------------------------------<BR >delta off 12 8 14 8 <BR >delta on 28 24 30 24<BR>
<BR>
-------BROWSER RESTORED-------<BR >Window 1/3 640 640 640 640 px<BR >--------------<BR >scrl off 628 632 626 632<BR >scrl on 612 616 610 616<BR >-----------------------------------------------------------------------------<BR >delta off 12 8 14 8<BR >delta on 28 24 30 24<BR>
<BR>
<BR>
So this means that scrollbars are always 16 pixels by windows default settings<BR >Variabile is the space used by window borders:<BR>
<BR>
SCROLLBARS OFF<BR>
IE when Maximized takes 4 <FONT class="">px</FONT> for the border<BR>
NN takes null<BR>
Op takes 6<BR>
Fx takes null<BR>
<BR>
[and these are the values of your interest]<BR>
Restored <BR>
IE=12<BR>
NN=8<BR>
OP=14<BR>
Fx=8<BR>
*These results are scientifically exact*<BR>
Sorry about Safari I don't have it. <BR>
And hope this is what you asked for ;)<BR>
Now you do the math...<BR>
<BR ><BR >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR > Troy III<BR > progressive art enterprise<BR >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR ><BR ><BR>
<HR id=stopSpelling>
<BR>
> From: geoffreyk@seanet.com<BR>> To: javascript@LaTech.edu<BR>> Date: Mon, 24 Jul 2006 07:38:39 -0700<BR>> Subject: [Javascript] Resizing browser window<BR>> <BR>> First off, let me state that I don't want to do this, and have tried to<BR>> convince the decision makers that this is a bad idea, but to no avail. <BR>> <BR>> At a certain point in the application that I am working on, I need to shrink<BR>> the width of the current browser and open a new, small browser window next<BR>> to it. I am having some troubles getting the width of the browser window. I<BR>> can get the width of the viewport, but not the width including scrollbars<BR>> and browser frame. The heart of the trouble is that I can get the width of<BR>> the viewport, but can only set the width of the browser window. Is there a<BR>> way to get the width of the browser window and/or set the width of the<BR>> viewport so that browser will resize around it? I need to support ie6, FF<BR>> and Safari. <BR>> <BR>> Thanks for any help<BR>> -Geoff<BR>> <BR>> <BR>> _______________________________________________<BR>> Javascript mailing list<BR>> Javascript@LaTech.edu<BR>> https://lists.LaTech.edu/mailman/listinfo/javascript<BR><BR><br /><hr />Express yourself instantly with <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=joinmsncom/messenger' target='_new'>Windows Live Messenger</a></body>
</html>