Invalidate the BTabView when new tabs are added. Works around new tabs not
showing immediately after they have been created, some pages don't set the title either, so then the tab still would't show. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@193 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
@@ -415,7 +415,7 @@ void LauncherWindow::newTab(const BString& url, bool select)
|
|||||||
m_tabView->AddTab(webView);
|
m_tabView->AddTab(webView);
|
||||||
m_tabView->TabAt(m_tabView->CountTabs() - 1)->SetLabel("New tab");
|
m_tabView->TabAt(m_tabView->CountTabs() - 1)->SetLabel("New tab");
|
||||||
// TODO: Remove when BTabView is fixed...
|
// TODO: Remove when BTabView is fixed...
|
||||||
m_tabView->InvalidateLayout();
|
m_tabView->Invalidate();
|
||||||
|
|
||||||
if (url.Length())
|
if (url.Length())
|
||||||
webView->LoadURL(url.String());
|
webView->LoadURL(url.String());
|
||||||
|
|||||||
Reference in New Issue
Block a user