Fix animation in single column layout.

This commit is contained in:
John Preston 2018-07-24 21:37:22 +03:00
parent aaa1245430
commit bfae205fbe
1 changed files with 7 additions and 1 deletions

View File

@ -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) {