PDA

View Full Version : Popup _blank windows are too tall


Gregory
2006-05-06, 08:04 AM
on my blog web site, clicking on a _blank anchor opens a new window with a height larger than specified.

<p>For a 750x500 version,
click <a href="/~gregory/aussiehk/photos/indo2005_4451_750x500.jpg"
onclick="window.open(this.href, '_blank', 'width=750,height=500,scrollbars=no,
resizable=no,toolbar=no,directories=no,location=no ,menubar=no,status=no,left=30,top=30');
return false">here</a>.</p>

the produced window is approximately 100 pixels too tall.

try any of the 'For a 750x500' links on my page at An Aussie in Hong Kong (http://www.hokwokwing.hk/aussiehk/travel_indonesia_sept_2005/).

SP7 (578)
OS X 10.4.6
iMac Duo Core 2GHz/2GB

JKT
2006-05-06, 10:44 AM
FWIW, the additional height represents the area that would be occupied by the toolbar (see for yourself by toggling the pill in the right hand side of the titlebar). It appears that the OmniWeb is hiding the toolbar but not removing the blank space left behind.

Len Case
2006-05-06, 12:03 PM
FWIW, the additional height represents the area that would be occupied by the toolbar (see for yourself by toggling the pill in the right hand side of the titlebar). It appears that the OmniWeb is hiding the toolbar but not removing the blank space left behind.
Indeed, if you were to turn off the toolbars yourself, the windows would be the correct height.

Unlike Safari (or most other Cocoa toolbar apps) we don't change the size of the window when the toolbar is hidden so the order of setting the size and setting whether there are toolbars matters to us.