mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix info layer animations.
This commit is contained in:
parent
3cc0110464
commit
d2f928f0c3
2 changed files with 2 additions and 5 deletions
|
@ -75,12 +75,13 @@ void ContentWidget::updateControlsGeometry() {
|
||||||
if (!_innerWrap) {
|
if (!_innerWrap) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
_innerWrap->resizeToWidth(width());
|
||||||
|
|
||||||
auto newScrollTop = _scroll->scrollTop() + _topDelta;
|
auto newScrollTop = _scroll->scrollTop() + _topDelta;
|
||||||
auto scrollGeometry = rect().marginsRemoved(
|
auto scrollGeometry = rect().marginsRemoved(
|
||||||
QMargins(0, _scrollTopSkip.current(), 0, 0));
|
QMargins(0, _scrollTopSkip.current(), 0, 0));
|
||||||
if (_scroll->geometry() != scrollGeometry) {
|
if (_scroll->geometry() != scrollGeometry) {
|
||||||
_scroll->setGeometry(scrollGeometry);
|
_scroll->setGeometry(scrollGeometry);
|
||||||
_innerWrap->resizeToWidth(_scroll->width());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_scroll->isHidden()) {
|
if (!_scroll->isHidden()) {
|
||||||
|
|
|
@ -105,10 +105,6 @@ void LayerWidget::setupHeightConsumers() {
|
||||||
// New content arrived.
|
// New content arrived.
|
||||||
_heightAnimated = _heightAnimation.animating();
|
_heightAnimated = _heightAnimation.animating();
|
||||||
return;
|
return;
|
||||||
} else if (height < _desiredHeight
|
|
||||||
&& height < st::columnMinimalWidthMain) {
|
|
||||||
// Don't animate layer height to a very small one.
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
std::swap(_desiredHeight, height);
|
std::swap(_desiredHeight, height);
|
||||||
if (!height
|
if (!height
|
||||||
|
|
Loading…
Add table
Reference in a new issue