mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix animation in single column layout.
This commit is contained in:
@@ -2248,8 +2248,14 @@ Window::SectionSlideParams MainWidget::prepareShowAnimation(
|
|||||||
height() - sectionTop));
|
height() - sectionTop));
|
||||||
} else if (_mainSection) {
|
} else if (_mainSection) {
|
||||||
result.oldContentCache = _mainSection->grabForShowAnimation(result);
|
result.oldContentCache = _mainSection->grabForShowAnimation(result);
|
||||||
} else {
|
} else if (!Adaptive::OneColumn() || !_history->isHidden()) {
|
||||||
result.oldContentCache = _history->grabForShowAnimation(result);
|
result.oldContentCache = _history->grabForShowAnimation(result);
|
||||||
|
} else {
|
||||||
|
result.oldContentCache = Ui::GrabWidget(this, QRect(
|
||||||
|
0,
|
||||||
|
sectionTop,
|
||||||
|
_dialogsWidth,
|
||||||
|
height() - sectionTop));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playerVolumeVisible) {
|
if (playerVolumeVisible) {
|
||||||
|
Reference in New Issue
Block a user