mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 08:50:33 +00:00
UI: Update layout on recreate to focus subviews.
This commit is contained in:
parent
f26d682e14
commit
1318f29c8d
@ -36,6 +36,14 @@ void UIScreen::DoRecreateViews() {
|
||||
|
||||
if (persisting && root_ != nullptr) {
|
||||
root_->PersistData(UI::PERSIST_RESTORE, "root", persisted);
|
||||
|
||||
// Update layout and refocus so things scroll into view.
|
||||
// This is for resizing down, when focused on something now offscreen.
|
||||
UI::LayoutViewHierarchy(*screenManager()->getUIContext(), root_);
|
||||
UI::View *focused = UI::GetFocusedView();
|
||||
if (focused) {
|
||||
root_->SubviewFocused(focused);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user