EXP-1440 FIX Floaters can offset from call dialog and show offscreen for default positions

meow-7.2.2
Richard Linden 2011-10-20 12:05:03 -07:00
parent aa3f5edc83
commit c43681ca8f
1 changed files with 3 additions and 1 deletions

View File

@ -875,7 +875,8 @@ bool LLFloater::applyRectControl()
{
bool saved_rect = false;
if (LLFloaterReg::getLastFloaterInGroup(mInstanceName))
LLFloater* last_in_group = LLFloaterReg::getLastFloaterInGroup(mInstanceName);
if (last_in_group && last_in_group != this)
{
// other floaters in our group, position ourselves relative to them and don't save the rect
mRectControl.clear();
@ -1589,6 +1590,7 @@ void LLFloater::setDocked(bool docked, bool pop_on_undock)
if (mDocked)
{
setMinimized(FALSE);
mOpenPositioning = LLFloaterEnums::OPEN_POSITIONING_NONE;
}
updateTitleButtons();