[muglo] A partial solution to Apple's bad window zooming behaviour (only works in web browsers)

Apple's Mac OS X is unable to properly use the zoom button to maximize
a window to take advantage of the full screen.

This a partial solution to the problem and only works in web browsers
that implement javascript  (and, even then YMMV since the Dock really
screws things up depending on whether it's visible or not and where
it's located):

Create an HTML file that contains the following code (or a variant
thereof) and set that to load as your home page when you open a new
window (you could save it in your Sites folder... for example, this is
my entry for the home page: file:///Users/eric/Sites/Start.html):

<HTML>
<META HTTP-EQUIV=3D"Refresh" CONTENT=3D"0; URL=3Dhttp://www.google.ca";>
<BODY onLoad =3D"moveTo(0,0);self.resizeTo(screen.availWidth+4,screen.avail=
Height)";
</BODY>
</HTML>

The HTTP-EQUIV=3D command tells your web browser to load another web
site (Google in my case), or if you want to keep things local, another
local file. You can also keep things very simple and eliminate the
<META> command. Nothing will open and all that'll happen will be that
the window is resized.

Note: the +4 must be added to the width. For some reason Mac OS X
doesn't tell the webbrowser the correct screen width (or, maybe the
javascript specifications have some quirk or... who knows... for
whatever reason +4 pixels are needed to prevent a gap from appearing
between scroll bar and screen edge (provided your Dock isn't at the
right side of the screen in which case this would be a pointless
exercise)).

The onLoad=3D is a javascript command that tells the web browser to
resize the window to ensure that the right scoll bar is flush with the
right-hand side of the screen.
_________________________________________________

For information concerning the MUGLO List just click on

        http://www.freewebs.com/muglo/joinus.html

Our Archives can be viewed at 

         http://www.freelists.org/archives/muglo

Don't forget to periodically check our web site at:

            http://www.freewebs.com/muglo/

Other related posts: