2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

fixed mentionsdropdown with pinned message display

This commit is contained in:
John Preston
2016-03-12 19:38:17 +03:00
parent 5aa5a62b74
commit bf5a5fd529
2 changed files with 10 additions and 6 deletions

View File

@@ -4578,10 +4578,10 @@ void MentionsDropdown::recount(bool resetScroll) {
if (h > _boundings.height()) h = _boundings.height();
if (h > maxh) h = maxh;
if (width() != _boundings.width() || height() != h) {
setGeometry(0, _boundings.height() - h, _boundings.width(), h);
setGeometry(_boundings.x(), _boundings.y() + _boundings.height() - h, _boundings.width(), h);
_scroll.resize(_boundings.width(), h);
} else if (y() != _boundings.height() - h) {
move(0, _boundings.height() - h);
} else if (y() != _boundings.y() + _boundings.height() - h) {
move(_boundings.x(), _boundings.y() + _boundings.height() - h);
}
if (resetScroll) st = 0;
if (st != oldst) _scroll.scrollToY(st);