report spam panel positioned under the pinned message

This commit is contained in:
John Preston 2016-03-14 16:27:01 +03:00
parent 3e37be5d5c
commit 680ea9f616
1 changed files with 2 additions and 0 deletions

View File

@ -6202,12 +6202,14 @@ void HistoryWidget::resizeEvent(QResizeEvent *e) {
if (_pinnedBar) {
if (_scroll.y() != st::replyHeight) {
_scroll.move(0, st::replyHeight);
_reportSpamPanel.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 if (_scroll.y() != 0) {
_scroll.move(0, 0);
_reportSpamPanel.move(0, 0);
_attachMention.setBoundings(_scroll.geometry());
}