Fixed normal bug EXT-4743 ('Stop flying' button disappears if minimize undocked movement controls)

- synchronized visibility of "stand_stop_flying_container" with a panel visibility when it is reparented from the Move Floater to container.

--HG--
branch : product-engine
master
Mike Antipov 2010-01-29 14:25:50 +02:00
parent 57e1216f79
commit 943f8afa09
1 changed files with 3 additions and 0 deletions

View File

@ -651,6 +651,9 @@ void LLPanelStandStopFlying::reparent(LLFloaterMove* move_view)
// Detach from movement controls.
parent->removeChild(this);
mOriginalParent.get()->addChild(this);
// update parent with self visibility (it is changed in setVisible()). EXT-4743
mOriginalParent.get()->setVisible(getVisible());
mAttached = false;
updatePosition(); // don't defer until next draw() to avoid flicker
}