Fixed position of connecting state widget when forum is opened.

Fixed #27548.
This commit is contained in:
23rd 2024-03-07 16:36:07 +03:00 committed by John Preston
parent f56b16c6ef
commit 02e1c03ed9

View file

@ -2964,7 +2964,9 @@ void Widget::updateControlsGeometry() {
if (_connecting) {
_connecting->setBottomSkip(bottomSkip);
}
controller()->setConnectingBottomSkip(bottomSkip);
if (_layout != Layout::Child) {
controller()->setConnectingBottomSkip(bottomSkip);
}
const auto wasScrollTop = _scroll->scrollTop();
const auto newScrollTop = (_topDelta < 0 && wasScrollTop <= 0)