summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastnotifypanel.cpp
diff options
context:
space:
mode:
authorTofu Buzzard <no-email>2011-02-10 09:54:55 -0800
committerTofu Buzzard <no-email>2011-02-10 09:54:55 -0800
commitc3d46cf6091ab544c5c8fb4a0246bbb1743ae69c (patch)
treee02259d268b707d8ae4541f5673fc925b36cfe72 /indra/newview/lltoastnotifypanel.cpp
parentcc6602c0c7fa34d712127cb98b24fcc73641fc19 (diff)
parent3738cf241ab547e93c0cd9f0c0250502d93c9092 (diff)
merge
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