[Javascript] Resizing browser window
Geoff Knutzen
geoffreyk at seanet.com
Tue Jul 25 09:27:43 CDT 2006
Thanks Troy,
This may help if I can't find a more direct way of getting these
measurements or accomplishing my goal in another manner.
Really I am hoping to find some sort of property that I can query to get
these values on the fly or a different way to resize a window.
Thanks though, I very well may end up using these values
-Geoff
_____
From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of Troy III Ajnej
Sent: Monday, July 24, 2006 5:02 PM
To: [JavaScript List]
Subject: RE: [Javascript] Resizing browser window
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 -1920
scrl on -1900 -1904 -1898 -1904
----------------------------------------------------------------------------
delta off -4 -0 -6 -0
delta on -20 -16 -22 -16
-------BROWSER RESTORED-------
Window 1/2 960 960 960 960 px
--------------
scrl off 948 952 946 952
scrl 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 632
scrl on 612 616 610 616
----------------------------------------------------------------------------
-
delta off 12 8 14 8
delta on 28 24 30 24
So this means that scrollbars are always 16 pixels by windows default
settings
Variabile 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 instantly with Windows Live Messenger
<http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=
joinmsncom/messenger>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060725/65a390d7/attachment.htm>
More information about the Javascript
mailing list