mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Remove status bar entirely from popups that don't want it
This commit is contained in:
parent
6867cb8edd
commit
5accdab49f
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user