Introduce a setting for Automatically scrolling to the bottom of a chat when the chat gains focus
Preferences->Adv. Chat->Chat UI, Autoscroll to the end of chats when they regain focus. This defaults to false, unlike the legacy behavior. Partial revert of "Feature Removal!: Do not scroll to the end of chats when the corresponding chatbar regains focus!"
This commit is contained in:
@@ -333,6 +333,20 @@ void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file)
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLFloaterChat::setHistoryCursorAndScrollToEnd()
|
||||
{
|
||||
if (LLViewerTextEditor* editor = getInstance()->findChild<LLViewerTextEditor>("Chat History Editor"))
|
||||
{
|
||||
editor->setCursorAndScrollToEnd();
|
||||
}
|
||||
if (LLViewerTextEditor* editor = getInstance()->findChild<LLViewerTextEditor>("Chat History Editor with mute"))
|
||||
{
|
||||
editor->setCursorAndScrollToEnd();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//static
|
||||
void LLFloaterChat::onClickMute(void *data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user