mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Fixed position of unread mentions button when field changes height.
This commit is contained in:
@@ -4780,7 +4780,7 @@ void HistoryWidget::updateHistoryGeometry(bool initial, bool loadedDown, const S
|
|||||||
if (!_unreadMentionsShown.animating()) {
|
if (!_unreadMentionsShown.animating()) {
|
||||||
// _unreadMentions is a child widget of _scroll, not me.
|
// _unreadMentions is a child widget of _scroll, not me.
|
||||||
auto additionalSkip = _historyDownIsShown ? (_historyDown->height() + st::historyUnreadMentionsSkip) : 0;
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user