-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) { if (fOwner) {
check_lock(); 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 // make sure our owner doesn't need us anymore
if (fOwner->CurrentFocus() == this) if (fOwner->CurrentFocus() == this)
@ -4206,7 +4201,6 @@ BView::_UpdateStateForRemove()
fState->UpdateFrom(*fOwner->fLink); fState->UpdateFrom(*fOwner->fLink);
fBounds = Bounds(); fBounds = Bounds();
fParentOffset = LeftTop();
// update children as well // update children as well