diff options
author | Don Kjer <don@lindenlab.com> | 2011-03-01 02:13:55 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2011-03-01 02:13:55 +0000 |
commit | 627c28da811f00ddd02a5c2af0762f427ac02a1b (patch) | |
tree | 13e1deab87b9a3c56595b796bd17347e47a93658 /indra/newview/lltoastnotifypanel.cpp | |
parent | f2764d24a3b3563d66a683c84af22b61648755cb (diff) | |
parent | 0929315ab103433275a71f26a4900ee0615932e9 (diff) |
Merge with viewer-headless
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 |