Fix top bar layout when emoji section is visible.

This commit is contained in:
John Preston 2017-04-30 16:58:27 +03:00
parent a925822141
commit 4c2a0fa630
1 changed files with 1 additions and 1 deletions

View File

@ -3631,7 +3631,7 @@ bool HistoryWidget::paintTopBar(Painter &p, int decreaseWidth, TimeMs ms) {
auto nameleft = st::topBarArrowPadding.right() + increaseLeft;
auto nametop = st::topBarArrowPadding.top();
auto statustop = st::topBarHeight - st::topBarArrowPadding.bottom() - st::dialogsTextFont->height;
auto namewidth = width() - decreaseWidth - nameleft - st::topBarArrowPadding.right();
auto namewidth = _chatWidth - decreaseWidth - nameleft - st::topBarArrowPadding.right();
p.setFont(st::dialogsTextFont);
if (!_history->paintSendAction(p, nameleft, statustop, namewidth, width(), st::historyStatusFgTyping, ms)) {
p.setPen(_titlePeerTextOnline ? st::historyStatusFgActive : st::historyStatusFg);