summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastpanel.cpp
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2013-01-25 22:56:35 +0000
committerCho <cho@lindenlab.com>2013-01-25 22:56:35 +0000
commit427725c2a6d5c50468e7579a4d3b92795425723f (patch)
tree59def37a836e261e1c1a7027a450e59785f25fc3 /indra/newview/lltoastpanel.cpp
parent9312cd8709132835878bdbe17f81d1b3e9fa7f45 (diff)
parentdaa9db305a5ae2c0c5b0c2425d6482de6dee7b2c (diff)
merging latest changes
Diffstat (limited to 'indra/newview/lltoastpanel.cpp')
-rw-r--r--indra/newview/lltoastpanel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/lltoastpanel.cpp b/indra/newview/lltoastpanel.cpp
index 187aee207c..54d3912136 100644
--- a/indra/newview/lltoastpanel.cpp
+++ b/indra/newview/lltoastpanel.cpp
@@ -81,7 +81,9 @@ void LLToastPanel::snapToMessageHeight(LLTextBase* message, S32 maxLineCount)
S32 newTextHeight = llmin(requiredTextHeight, maxTextHeight);
heightDelta = newTextHeight - oldTextHeight;
- S32 new_panel_height = llmax(getRect().getHeight() + heightDelta, MIN_PANEL_HEIGHT);
+ S32 new_panel_height = llmin(
+ llmax(getRect().getHeight() + heightDelta, MIN_PANEL_HEIGHT),
+ maxTextHeight);
//reshape the panel with new height
if (new_panel_height != getRect().getHeight())