Fix chats list bottom buttons skip.

This commit is contained in:
John Preston 2024-01-25 17:55:10 +04:00
parent 7e7fd6f1b4
commit 3c5cace175

View file

@ -3002,7 +3002,7 @@ void Widget::updateControlsGeometry() {
} }
const auto scrollTop = forumReportTop const auto scrollTop = forumReportTop
+ (_forumReportBar ? _forumReportBar->bar().height() : 0); + (_forumReportBar ? _forumReportBar->bar().height() : 0);
const auto scrollHeight = height() - scrollTop; const auto scrollHeight = height() - scrollTop - bottomSkip;
const auto wasScrollHeight = _scroll->height(); const auto wasScrollHeight = _scroll->height();
_scroll->setGeometry(0, scrollTop, scrollWidth, scrollHeight); _scroll->setGeometry(0, scrollTop, scrollWidth, scrollHeight);
if (scrollHeight != wasScrollHeight) { if (scrollHeight != wasScrollHeight) {