BTabView doesn't properly trigger a relayout when adding a new tab.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@164 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi
2010-02-21 13:48:07 +00:00
parent 714edff6e1
commit d3d066c322
+2
View File
@@ -411,6 +411,8 @@ void LauncherWindow::newTab(const BString& url, bool select)
WebView* webView = new WebView("web_view");
m_tabView->AddTab(webView);
m_tabView->TabAt(m_tabView->CountTabs() - 1)->SetLabel("New tab");
// TODO: Remove when BTabView is fixed...
m_tabView->InvalidateLayout();
if (url.Length())
webView->loadRequest(url.String());