Remove status bar entirely from popups that don't want it

This commit is contained in:
pinkerton%netscape.com 2002-06-11 19:36:33 +00:00
parent 6867cb8edd
commit 5accdab49f
4 changed files with 28 additions and 24 deletions

View File

@ -169,16 +169,17 @@ static NSString *PrintToolbarItemIdentifier = @"Print Toolbar Item";
[[self window] setShowsResizeIndicator:NO];
if ( mChromeMask && !(mChromeMask & nsIWebBrowserChrome::CHROME_STATUSBAR) ) {
// remove the status bar at the bottom and adjust the height of the content area
// downwards
// remove the status bar at the bottom and adjust the height of the content area. We
// have to turn off the autoresizing min flag to correctly pull the tab browser to
// the bottom of the window while we're resizing it.
float height = [mStatusBar frame].size.height;
[mStatusBar removeFromSuperview];
#if NOT_YET
// for some reason, i can't get this working correctly. I'm not sure why, so i'm erring on the
// side of safety
int mask = [mTabBrowser autoresizingMask];
[mTabBrowser setAutoresizingMask:(mask & !NSViewMinYMargin)];
[mTabBrowser setFrame:NSMakeRect([mTabBrowser frame].origin.x, [mTabBrowser frame].origin.y - height,
[mTabBrowser frame].size.width, [mTabBrowser frame].size.height + height)];
#endif
[mTabBrowser setAutoresizingMask:mask];
// clear out everything in the status bar we were holding on to. This will cause us to
// pass nil for these status items into the CHBrowserwWrapper which is what we want. We'll
// crash if we give them things that have gone away.

View File

@ -169,16 +169,17 @@ static NSString *PrintToolbarItemIdentifier = @"Print Toolbar Item";
[[self window] setShowsResizeIndicator:NO];
if ( mChromeMask && !(mChromeMask & nsIWebBrowserChrome::CHROME_STATUSBAR) ) {
// remove the status bar at the bottom and adjust the height of the content area
// downwards
// remove the status bar at the bottom and adjust the height of the content area. We
// have to turn off the autoresizing min flag to correctly pull the tab browser to
// the bottom of the window while we're resizing it.
float height = [mStatusBar frame].size.height;
[mStatusBar removeFromSuperview];
#if NOT_YET
// for some reason, i can't get this working correctly. I'm not sure why, so i'm erring on the
// side of safety
int mask = [mTabBrowser autoresizingMask];
[mTabBrowser setAutoresizingMask:(mask & !NSViewMinYMargin)];
[mTabBrowser setFrame:NSMakeRect([mTabBrowser frame].origin.x, [mTabBrowser frame].origin.y - height,
[mTabBrowser frame].size.width, [mTabBrowser frame].size.height + height)];
#endif
[mTabBrowser setAutoresizingMask:mask];
// clear out everything in the status bar we were holding on to. This will cause us to
// pass nil for these status items into the CHBrowserwWrapper which is what we want. We'll
// crash if we give them things that have gone away.

View File

@ -169,16 +169,17 @@ static NSString *PrintToolbarItemIdentifier = @"Print Toolbar Item";
[[self window] setShowsResizeIndicator:NO];
if ( mChromeMask && !(mChromeMask & nsIWebBrowserChrome::CHROME_STATUSBAR) ) {
// remove the status bar at the bottom and adjust the height of the content area
// downwards
// remove the status bar at the bottom and adjust the height of the content area. We
// have to turn off the autoresizing min flag to correctly pull the tab browser to
// the bottom of the window while we're resizing it.
float height = [mStatusBar frame].size.height;
[mStatusBar removeFromSuperview];
#if NOT_YET
// for some reason, i can't get this working correctly. I'm not sure why, so i'm erring on the
// side of safety
int mask = [mTabBrowser autoresizingMask];
[mTabBrowser setAutoresizingMask:(mask & !NSViewMinYMargin)];
[mTabBrowser setFrame:NSMakeRect([mTabBrowser frame].origin.x, [mTabBrowser frame].origin.y - height,
[mTabBrowser frame].size.width, [mTabBrowser frame].size.height + height)];
#endif
[mTabBrowser setAutoresizingMask:mask];
// clear out everything in the status bar we were holding on to. This will cause us to
// pass nil for these status items into the CHBrowserwWrapper which is what we want. We'll
// crash if we give them things that have gone away.

View File

@ -169,16 +169,17 @@ static NSString *PrintToolbarItemIdentifier = @"Print Toolbar Item";
[[self window] setShowsResizeIndicator:NO];
if ( mChromeMask && !(mChromeMask & nsIWebBrowserChrome::CHROME_STATUSBAR) ) {
// remove the status bar at the bottom and adjust the height of the content area
// downwards
// remove the status bar at the bottom and adjust the height of the content area. We
// have to turn off the autoresizing min flag to correctly pull the tab browser to
// the bottom of the window while we're resizing it.
float height = [mStatusBar frame].size.height;
[mStatusBar removeFromSuperview];
#if NOT_YET
// for some reason, i can't get this working correctly. I'm not sure why, so i'm erring on the
// side of safety
int mask = [mTabBrowser autoresizingMask];
[mTabBrowser setAutoresizingMask:(mask & !NSViewMinYMargin)];
[mTabBrowser setFrame:NSMakeRect([mTabBrowser frame].origin.x, [mTabBrowser frame].origin.y - height,
[mTabBrowser frame].size.width, [mTabBrowser frame].size.height + height)];
#endif
[mTabBrowser setAutoresizingMask:mask];
// clear out everything in the status bar we were holding on to. This will cause us to
// pass nil for these status items into the CHBrowserwWrapper which is what we want. We'll
// crash if we give them things that have gone away.