CHUI-428 (Scroll conversation list to the newly created conversation)

fixed
meow-7.2.2
MaximB ProductEngine 2012-10-22 04:35:31 +03:00
parent 730ba97759
commit 364e811867
1 changed files with 6 additions and 0 deletions

View File

@ -1113,6 +1113,9 @@ void LLIMFloaterContainer::setItemSelect(const LLUUID& session_id)
mSelectedSession = session_id;
LLFolderViewItem* widget = mConversationsWidgets[session_id];
(widget->getRoot())->setSelection(widget, FALSE, FALSE);
// Scroll to selected item
mConversationsRoot->scrollToShowSelection();
}
}
}
@ -1228,6 +1231,9 @@ void LLIMFloaterContainer::addConversationListItem(const LLUUID& uuid, bool isWi
// set the widget to minimized mode if conversations pane is collapsed
widget->toggleMinimizedMode(mConversationsPane->isCollapsed());
// scroll to newly added item
mConversationsRoot->scrollToShowSelection();
return;
}