2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

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;
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);
}
}
}