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:
@@ -457,8 +457,12 @@ void SectionWidget::showFinished() {
|
|||||||
showChildren();
|
showChildren();
|
||||||
showFinishedHook();
|
showFinishedHook();
|
||||||
|
|
||||||
|
if (isAncestorOf(window()->focusWidget())) {
|
||||||
|
setInnerFocus();
|
||||||
|
} else {
|
||||||
controller()->widget()->setInnerFocus();
|
controller()->widget()->setInnerFocus();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rpl::producer<int> SectionWidget::desiredHeight() const {
|
rpl::producer<int> SectionWidget::desiredHeight() const {
|
||||||
return rpl::single(height());
|
return rpl::single(height());
|
||||||
|
Reference in New Issue
Block a user