summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastnotifypanel.cpp
diff options
context:
space:
mode:
authorSeth ProductEngine <slitovchuk@productengine.com>2011-02-04 21:01:01 +0200
committerSeth ProductEngine <slitovchuk@productengine.com>2011-02-04 21:01:01 +0200
commit287c3fcffc5527afea9b61ae7c25a840b6e850c4 (patch)
tree20f0176ca3890c11d8f3c5d83cee4d5647054215 /indra/newview/lltoastnotifypanel.cpp
parente82fb8c7b90c0f5038c38a1aaf4882718433bfd6 (diff)
STORM-433 FIXED Fixed reshaping notification panel with friendship offer when it is inserted into IM chat.
Diffstat (limited to 'indra/newview/lltoastnotifypanel.cpp')
-rw-r--r--indra/newview/lltoastnotifypanel.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/lltoastnotifypanel.cpp b/indra/newview/lltoastnotifypanel.cpp
index 3f7dc24ade..fa91f129b8 100644
--- a/indra/newview/lltoastnotifypanel.cpp
+++ b/indra/newview/lltoastnotifypanel.cpp
@@ -563,7 +563,17 @@ void LLIMToastNotifyPanel::reshape(S32 width, S32 height, BOOL called_from_paren
height = rc.getHeight();
width = rc.getWidth();
+ bool is_width_changed = width != getRect().getWidth();
+
LLToastPanel::reshape(width, height, called_from_parent);
+
+ // Notification height required to display the text message depends on
+ // the width of the text box thus if panel width is changed the text box
+ // width is also changed then reshape() is called to adjust proper height.
+ if (is_width_changed)
+ {
+ reshape(width, height, called_from_parent);
+ }
}
// EOF