From bfae205fbe39629ea204407952a9b590349b2a25 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 24 Jul 2018 21:37:22 +0300 Subject: [PATCH] Fix animation in single column layout. --- Telegram/SourceFiles/mainwidget.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 22444f6be..44c7dbaf6 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -2248,8 +2248,14 @@ Window::SectionSlideParams MainWidget::prepareShowAnimation( height() - sectionTop)); } else if (_mainSection) { result.oldContentCache = _mainSection->grabForShowAnimation(result); - } else { + } else if (!Adaptive::OneColumn() || !_history->isHidden()) { result.oldContentCache = _history->grabForShowAnimation(result); + } else { + result.oldContentCache = Ui::GrabWidget(this, QRect( + 0, + sectionTop, + _dialogsWidth, + height() - sectionTop)); } if (playerVolumeVisible) {