diff -r 2fe9d48e5881 indra/newview/llchathistory.cpp --- a/indra/newview/llchathistory.cpp Thu Feb 03 14:09:02 2011 -0800 +++ b/indra/newview/llchathistory.cpp Fri Feb 04 20:45:38 2011 +0200 @@ -899,31 +899,14 @@ } } - LLTextEditor* text_editor = notify_box->getChild("text_editor_box", TRUE); - S32 text_heigth = 0; - if(text_editor != NULL) - { - text_heigth = text_editor->getTextBoundingRect().getHeight(); - } - //Prepare the rect for the view LLRect target_rect = mEditor->getDocumentView()->getRect(); // squeeze down the widget by subtracting padding off left and right target_rect.mLeft += mLeftWidgetPad + mEditor->getHPad(); target_rect.mRight -= mRightWidgetPad; - notify_box->reshape(target_rect.getWidth(), - notify_box->getRect().getHeight()); + notify_box->reshape(target_rect.getWidth(), notify_box->getRect().getHeight()); notify_box->setOrigin(target_rect.mLeft, notify_box->getRect().mBottom); - if (text_editor != NULL) - { - S32 text_heigth_delta = - text_editor->getTextBoundingRect().getHeight() - - text_heigth; - notify_box->reshape(target_rect.getWidth(), - notify_box->getRect().getHeight() + text_heigth_delta); - } - LLInlineViewSegment::Params params; params.view = notify_box; params.left_pad = mLeftWidgetPad; diff -r 2fe9d48e5881 indra/newview/lltoastnotifypanel.cpp --- a/indra/newview/lltoastnotifypanel.cpp Thu Feb 03 14:09:02 2011 -0800 +++ b/indra/newview/lltoastnotifypanel.cpp Fri Feb 04 20:45:38 2011 +0200 @@ -563,7 +563,17 @@ 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