mirror of https://github.com/procxx/kepka.git
fixed two layout bugs
This commit is contained in:
parent
9926357af5
commit
da5887fbb5
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue