Reset the tab region when switching to a tab less look. At least partially fixes #7919.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42636 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2011-08-15 23:29:38 +00:00
parent a820304d86
commit c732cb560d
1 changed files with 5 additions and 0 deletions

View File

@ -438,6 +438,11 @@ DefaultDecorator::_DoLayout()
return;
} else {
// no tab
for (int32 i = 0; i < fTabList.CountItems(); i++) {
Decorator::Tab* tab = fTabList.ItemAt(i);
tab->tabRect.Set(0.0, 0.0, -1.0, -1.0);
}
fTabsRegion.MakeEmpty();
fTitleBarRect.Set(0.0, 0.0, -1.0, -1.0);
}
}