From 015277c4d3acfcb60104c99e3bd9c8785e5bdf19 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 30 Sep 2020 18:33:37 +0300 Subject: [PATCH] Disabled top moving of dialogs when window has normal adaptive layout. Fixed #8370. --- Telegram/SourceFiles/mainwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 34257e3dd..97b9c2b4d 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -2201,7 +2201,7 @@ void MainWidget::updateControlsGeometry() { accumulate_min(dialogsWidth, width() - st::columnMinimalWidthMain); auto mainSectionWidth = width() - dialogsWidth - thirdSectionWidth; - _dialogs->setGeometryWithTopMoved({ 0, 0, dialogsWidth, height() }, _contentScrollAddToY); + _dialogs->setGeometryToLeft(0, 0, dialogsWidth, height()); const auto shadowTop = _controller->window().verticalShadowTop(); const auto shadowHeight = height() - shadowTop; _sideShadow->setGeometryToLeft(