make sure the browser is visible before creating the tabs, allows tab

to load if bm manager was frontmost (bug 262160)
This commit is contained in:
pinkerton%aol.net 2004-10-06 20:47:52 +00:00
parent ae19bafe08
commit cc840365dd

View File

@ -2241,11 +2241,13 @@ enum BWCOpenDest {
- (void)createNewTab:(ENewTabContents)contents;
{
// ensureBrowserVisible needs to be called prior to createNewTabItem or the new view won't draw
// if the bookmarks manager was visible.
[self ensureBrowserVisible:self];
BrowserTabViewItem* newTab = [self createNewTabItem];
BrowserWrapper* newView = [newTab view];
[self ensureBrowserVisible:self];
BOOL loadHomepage = NO;
if (contents == eNewTabHomepage)
{
@ -2478,9 +2480,12 @@ enum BWCOpenDest {
//
- (BrowserTabViewItem*)openNewTab:(BOOL)aLoadInBG;
{
// ensureBrowserVisible needs to be called prior to createNewTabItem or the new view won't draw
// if the bookmarks manager was visible.
[self ensureBrowserVisible:self];
BrowserTabViewItem* newTab = [self createNewTabItem];
[self ensureBrowserVisible:self];
// hyatt originally made new tabs open on the far right and tabs opened from a content
// link open to the right of the current tab. The idea was to keep the new tab