diff options
author | Loren Shih <seraph@lindenlab.com> | 2011-02-10 10:44:21 -0500 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2011-02-10 10:44:21 -0500 |
commit | e3ed1565f8c6eeff5d87f862465038aa98576fa9 (patch) | |
tree | 4ab57c1658d589d802f1e6bb6ff3331b75b61074 /indra/newview/lltoastnotifypanel.cpp | |
parent | 952c3eaaa8c78d00ef62932d46af1d8fa565e7b2 (diff) | |
parent | 76cb9a7796ffce930458aae00147f8dafa4b33fb (diff) |
Automated merge up from viewer-development into mesh-development
Diffstat (limited to 'indra/newview/lltoastnotifypanel.cpp')
-rw-r--r-- | indra/newview/lltoastnotifypanel.cpp | 10 |
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 |