Skip to content
Snippets Groups Projects
Commit daa9db30 authored by AlexanderP ProductEngine's avatar AlexanderP ProductEngine
Browse files

CHUI-695 Viewer crashes after attempt to accept a friendship in IM: remove an...

CHUI-695 Viewer crashes after attempt to accept a friendship in IM: remove an infinity loop of reshape()
parent a6c4d127
No related branches found
No related tags found
No related merge requests found
......@@ -537,11 +537,9 @@ LLIMToastNotifyPanel::~LLIMToastNotifyPanel()
}
void LLIMToastNotifyPanel::reshape(S32 width, S32 height, BOOL called_from_parent /* = TRUE */)
{
LLToastPanel::reshape(width, height, called_from_parent);
{
snapToMessageHeight(mTextBox, MAX_LENGTH);
}
}
void LLIMToastNotifyPanel::compactButtons()
{
......
......@@ -81,7 +81,9 @@ void LLToastPanel::snapToMessageHeight(LLTextBase* message, S32 maxLineCount)
S32 newTextHeight = llmin(requiredTextHeight, maxTextHeight);
heightDelta = newTextHeight - oldTextHeight;
S32 new_panel_height = llmax(getRect().getHeight() + heightDelta, MIN_PANEL_HEIGHT);
S32 new_panel_height = llmin(
llmax(getRect().getHeight() + heightDelta, MIN_PANEL_HEIGHT),
maxTextHeight);
//reshape the panel with new height
if (new_panel_height != getRect().getHeight())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment