summaryrefslogtreecommitdiff
path: root/indra/newview/llnearbychatbar.cpp
diff options
context:
space:
mode:
authorLeslie Linden <leslie@lindenlab.com>2011-10-05 16:39:32 -0700
committerLeslie Linden <leslie@lindenlab.com>2011-10-05 16:39:32 -0700
commitd8489166645f2e3ea7edd252997f9f48aa0871c3 (patch)
treee2f5c52f0c397b0dfb1d0e3cb47ca59d609292dc /indra/newview/llnearbychatbar.cpp
parent17c699e4281ffff58e24c5db960a5c33018f1747 (diff)
parenta88bb3231b2685eb640710d7617d26b7f3a2c0d2 (diff)
Merge with latest
Diffstat (limited to 'indra/newview/llnearbychatbar.cpp')
-rw-r--r--indra/newview/llnearbychatbar.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llnearbychatbar.cpp b/indra/newview/llnearbychatbar.cpp
index dbe30e1847..cba4fafe42 100644
--- a/indra/newview/llnearbychatbar.cpp
+++ b/indra/newview/llnearbychatbar.cpp
@@ -53,6 +53,8 @@
S32 LLNearbyChatBar::sLastSpecialChatChannel = 0;
+const S32 EXPANDED_HEIGHT = 300;
+
// legacy callback glue
void send_chat_from_viewer(const std::string& utf8_out_text, EChatType type, S32 channel);
@@ -448,13 +450,15 @@ BOOL LLNearbyChatBar::postBuild()
// Register for font change notifications
LLViewerChat::setFontChangedCallback(boost::bind(&LLNearbyChatBar::onChatFontChange, this, _1));
+ mExpandedHeight = getMinHeight() + EXPANDED_HEIGHT;
+
return TRUE;
}
void LLNearbyChatBar::applyRectControl()
{
LLFloater::applyRectControl();
- if (getRect().getHeight() > getMinHeight())
+ if (getRect().getHeight() > getMinHeight())
{
getChildView("nearby_chat")->setVisible(true);
mExpandedHeight = getRect().getHeight();