From 8f5079af02b69eeb105a410516291050b12e16e9 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 3 Mar 2012 08:32:05 -0500 Subject: [PATCH] When changing the tab height, also update the layout insets if needed. Fixes #8374. --- src/kits/interface/TabView.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/kits/interface/TabView.cpp b/src/kits/interface/TabView.cpp index 2f62ee8985..1b06aa05f5 100644 --- a/src/kits/interface/TabView.cpp +++ b/src/kits/interface/TabView.cpp @@ -522,7 +522,7 @@ BTabView::AllUnarchived(const BMessage* archive) BUnarchiver unarchiver(archive); - int32 tabCount; + int32 tabCount; archive->GetInfo("_l_items", NULL, &tabCount); for (int32 i = 0; i < tabCount && err == B_OK; i++) { BTab* tab; @@ -1284,10 +1284,8 @@ BTabView::SetTabHeight(float height) if (fTabHeight == height) return; - fContainerView->MoveBy(0.0f, height - fTabHeight); - fContainerView->ResizeBy(0.0f, height - fTabHeight); - fTabHeight = height; + _LayoutContainerView(GetLayout() != NULL); Invalidate(); }