mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix new messages animation in sections.
This commit is contained in:
parent
7e11966766
commit
3a26644fa2
1 changed files with 3 additions and 1 deletions
|
@ -1470,7 +1470,9 @@ void ListWidget::revealItemsCallback() {
|
||||||
? (_minHeight - _itemsHeight - st::historyPaddingBottom)
|
? (_minHeight - _itemsHeight - st::historyPaddingBottom)
|
||||||
: 0;
|
: 0;
|
||||||
const auto wasHeight = height();
|
const auto wasHeight = height();
|
||||||
const auto nowHeight = std::max(_minHeight, wasHeight + delta);
|
const auto nowHeight = _itemsTop
|
||||||
|
+ _itemsHeight
|
||||||
|
+ st::historyPaddingBottom;
|
||||||
if (wasHeight != nowHeight) {
|
if (wasHeight != nowHeight) {
|
||||||
resize(width(), nowHeight);
|
resize(width(), nowHeight);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue