Fixed position of unread mentions button when field changes height.

This commit is contained in:
23rd 2019-06-28 13:02:41 +03:00 committed by John Preston
parent 9c9ea8c2c0
commit cf8a06302f
1 changed files with 1 additions and 1 deletions

View File

@ -4780,7 +4780,7 @@ void HistoryWidget::updateHistoryGeometry(bool initial, bool loadedDown, const S
if (!_unreadMentionsShown.animating()) {
// _unreadMentions is a child widget of _scroll, not me.
auto additionalSkip = _historyDownIsShown ? (_historyDown->height() + st::historyUnreadMentionsSkip) : 0;
_unreadMentions->moveToRight(st::historyToDownPosition.x(), _scroll->height() - additionalSkip - st::historyToDownPosition.y());
_unreadMentions->moveToRight(st::historyToDownPosition.x(), _scroll->height() - _unreadMentions->height() - additionalSkip - st::historyToDownPosition.y());
}
}