2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Improve focusing of shown layers.

This commit is contained in:
John Preston
2024-07-31 13:44:07 +02:00
parent 76314e3c03
commit cf896aeb13

View File

@@ -457,8 +457,12 @@ void SectionWidget::showFinished() {
showChildren();
showFinishedHook();
if (isAncestorOf(window()->focusWidget())) {
setInnerFocus();
} else {
controller()->widget()->setInnerFocus();
}
}
rpl::producer<int> SectionWidget::desiredHeight() const {
return rpl::single(height());