From da5887fbb5c169170bab685f3ddb0493ac45763f Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 29 Jun 2015 15:43:41 +0300 Subject: [PATCH] fixed two layout bugs --- Telegram/SourceFiles/historywidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index 9be5f69bd..7766fcdcf 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -1099,6 +1099,8 @@ void HistoryList::updateBotInfo(bool recount) { botDescWidth = tw; newh = botInfo->text.countHeight(botDescWidth); } + } else if (recount) { + newh = botDescHeight; } } if (recount) { @@ -4466,6 +4468,10 @@ void HistoryWidget::peerMessagesUpdated(PeerId peer) { if (histPeer && _list && peer == histPeer->id) { updateListSize(); updateBotKeyboard(); + if (!_scroll.isHidden() && _botStart.isHidden() == isBotStart()) { + updateControlsVisibility(); + resizeEvent(0); + } } }