fixed two layout bugs

This commit is contained in:
John Preston 2015-06-29 15:43:41 +03:00
parent 9926357af5
commit da5887fbb5

View File

@ -1099,6 +1099,8 @@ void HistoryList::updateBotInfo(bool recount) {
botDescWidth = tw; botDescWidth = tw;
newh = botInfo->text.countHeight(botDescWidth); newh = botInfo->text.countHeight(botDescWidth);
} }
} else if (recount) {
newh = botDescHeight;
} }
} }
if (recount) { if (recount) {
@ -4466,6 +4468,10 @@ void HistoryWidget::peerMessagesUpdated(PeerId peer) {
if (histPeer && _list && peer == histPeer->id) { if (histPeer && _list && peer == histPeer->id) {
updateListSize(); updateListSize();
updateBotKeyboard(); updateBotKeyboard();
if (!_scroll.isHidden() && _botStart.isHidden() == isBotStart()) {
updateControlsVisibility();
resizeEvent(0);
}
} }
} }