EXP-1419 : Fix the nearby chat window show/hide and height persistence within a session
parent
b477f3c9af
commit
c8499a7b60
|
|
@ -112,14 +112,18 @@ BOOL LLNearbyChatBar::postBuild()
|
|||
bool LLNearbyChatBar::applyRectControl()
|
||||
{
|
||||
bool rect_controlled = LLFloater::applyRectControl();
|
||||
|
||||
if (getRect().getHeight() > getMinHeight())
|
||||
|
||||
LLView* nearby_chat = getChildView("nearby_chat");
|
||||
if (!nearby_chat->getVisible())
|
||||
{
|
||||
reshape(getRect().getWidth(), getMinHeight());
|
||||
enableResizeCtrls(true, true, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
getChildView("nearby_chat")->setVisible(true);
|
||||
mExpandedHeight = getRect().getHeight();
|
||||
enableResizeCtrls(true);
|
||||
}
|
||||
|
||||
|
||||
return rect_controlled;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue