[Javascript] Resizing browser window
Troy III Ajnej
trojani2000 at hotmail.com
Mon Jul 24 19:02:20 CDT 2006
These are the measures that my pilot-probe-object is reporting for the width of client area in the following
browsers on Windows platform:
Browser: Explorer 6 Navigator 8 Opera 9 Firefox 1.5
-------BROWSER MAXIMIZED-------
my screen 1920 1920 1920 1920 px--------------scrl Off -1916 -1920 -1914 -1920scrl on -1900 -1904 -1898 -1904----------------------------------------------------------------------------delta off -4 -0 -6 -0delta on -20 -16 -22 -16
-------BROWSER RESTORED-------Window 1/2 960 960 960 960 px--------------scrl off 948 952 946 952scrl on 932 936 930 936-----------------------------------------------------------------------------delta off 12 8 14 8 delta on 28 24 30 24
-------BROWSER RESTORED-------Window 1/3 640 640 640 640 px--------------scrl off 628 632 626 632scrl on 612 616 610 616-----------------------------------------------------------------------------delta off 12 8 14 8delta on 28 24 30 24
So this means that scrollbars are always 16 pixels by windows default settingsVariabile is the space used by window borders:
SCROLLBARS OFF
IE when Maximized takes 4 px for the border
NN takes null
Op takes 6
Fx takes null
[and these are the values of your interest]
Restored
IE=12
NN=8
OP=14
Fx=8
*These results are scientifically exact*
Sorry about Safari I don't have it.
And hope this is what you asked for ;)
Now you do the math...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: geoffreyk at seanet.com> To: javascript at LaTech.edu> Date: Mon, 24 Jul 2006 07:38:39 -0700> Subject: [Javascript] Resizing browser window> > First off, let me state that I don't want to do this, and have tried to> convince the decision makers that this is a bad idea, but to no avail. > > At a certain point in the application that I am working on, I need to shrink> the width of the current browser and open a new, small browser window next> to it. I am having some troubles getting the width of the browser window. I> can get the width of the viewport, but not the width including scrollbars> and browser frame. The heart of the trouble is that I can get the width of> the viewport, but can only set the width of the browser window. Is there a> way to get the width of the browser window and/or set the width of the> viewport so that browser will resize around it? I need to support ie6, FF> and Safari. > > Thanks for any help> -Geoff> > > _______________________________________________> Javascript mailing list> Javascript at LaTech.edu> https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Express yourself: design your homepage the way you want it with Live.com.
http://www.live.com/getstarted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060725/c1ba9cf4/attachment.htm>
More information about the Javascript
mailing list