CHUI-428 (Scroll conversation list to the newly created conversation)
fixedmeow-7.2.2
parent
730ba97759
commit
364e811867
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue