summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2011-10-19 19:29:45 -0700
committerMerov Linden <merov@lindenlab.com>2011-10-19 19:29:45 -0700
commitc8499a7b607171507df8cbb6f415dfaa66699b2a (patch)
treef69e749d64cac9a73585d347feb26fba2db66b69
parentb477f3c9af39dd49fcdb88f330f60c8b166fa0e8 (diff)
EXP-1419 : Fix the nearby chat window show/hide and height persistence within a session
-rw-r--r--indra/newview/llnearbychatbar.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/indra/newview/llnearbychatbar.cpp b/indra/newview/llnearbychatbar.cpp
index 3e4228cfb6..6a72bade67 100644
--- a/indra/newview/llnearbychatbar.cpp
+++ b/indra/newview/llnearbychatbar.cpp
@@ -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;
}