Moved "below" button displaying in performLayout method.

This commit is contained in:
23rd 2018-11-05 15:38:30 +03:00 committed by fourtf
parent a0ba2154ae
commit dcda714715

View file

@ -153,11 +153,6 @@ void ChannelView::initializeScrollbar()
{
this->scrollBar_->getCurrentValueChanged().connect([this] {
this->performLayout(true);
this->goToBottom_->setVisible(this->enableScrollingToBottom_ &&
this->scrollBar_->isVisible() &&
!this->scrollBar_->isAtBottom());
this->queueUpdate();
});
}
@ -314,6 +309,10 @@ void ChannelView::performLayout(bool causedByScrollbar)
/// Update scrollbar
this->updateScrollbar(messages, causedByScrollbar);
this->goToBottom_->setVisible(this->enableScrollingToBottom_ &&
this->scrollBar_->isVisible() &&
!this->scrollBar_->isAtBottom());
}
void ChannelView::layoutVisibleMessages(