2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +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

@@ -6193,11 +6193,15 @@ void HistoryWidget::resizeEvent(QResizeEvent *e) {
_field.move(_attachDocument.x() + _attachDocument.width(), height() - kbh - _field.height() - st::sendPadding);
if (_pinnedBar) {
_scroll.move(0, st::replyHeight);
if (_scroll.y() != st::replyHeight) {
_scroll.move(0, st::replyHeight);
_attachMention.setBoundings(_scroll.geometry());
}
_pinnedBar->cancel.move(width() - _pinnedBar->cancel.width(), 0);
_pinnedBar->shadow.setGeometry(0, st::replyHeight, width(), st::lineWidth);
} else {
_scroll.move(0, _pinnedBar ? st::replyHeight : 0);
} else if (_scroll.y() != 0) {
_scroll.move(0, 0);
_attachMention.setBoundings(_scroll.geometry());
}
_attachDocument.move(0, height() - kbh - _attachDocument.height());