-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
This commit is contained in:
Stefano Ceccherini 2005-12-29 22:57:34 +00:00
parent 2494fda73a
commit 1ae8b8cd19

View File

@ -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) {