fix: scroll to bottom when setting a channel (#5748)

This commit is contained in:
nerix
2024-12-02 16:59:17 +01:00
committed by GitHub
parent 8faf243e3e
commit 3c2a422243
4 changed files with 14 additions and 6 deletions
+7
View File
@@ -1074,6 +1074,13 @@ void ChannelView::setChannel(const ChannelPtr &underlyingChannel)
this->updateID();
this->queueLayout();
if (!this->isVisible() && !this->scrollBar_->isVisible())
{
// If we're not visible and the scrollbar is not (yet) visible,
// we need to make sure that it's at the bottom when this view is laid
// out later.
this->scrollBar_->scrollToBottom();
}
this->queueUpdate();
// Notifications