From 1ae8b8cd1984a7b051e9ee9f886dc0a4fdf01546 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 29 Dec 2005 22:57:34 +0000 Subject: [PATCH] -When a view was detached, its parent offset was resetted to B_ORIGIN. This caused BTabViews not to work correctly. - The view state was retrieved twice when a view was detached. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15734 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/View.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index 21891983c7..021406aee2 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -3381,11 +3381,6 @@ BView::RemoveSelf() if (fOwner) { check_lock(); - if (!fState->IsAllValid()) { - // we need to retrieve the latest state from the server - fState->UpdateFrom(*fOwner->fLink); - } - // make sure our owner doesn't need us anymore if (fOwner->CurrentFocus() == this) @@ -4206,8 +4201,7 @@ BView::_UpdateStateForRemove() fState->UpdateFrom(*fOwner->fLink); fBounds = Bounds(); - fParentOffset = LeftTop(); - + // update children as well for (BView *child = fFirstChild; child != NULL; child = child->fNextSibling) {