Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Do not check parent sorting in invisible widgets #2162

Merged
merged 1 commit into from
Nov 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions app/src/main/cpp/BrowserWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,10 +638,12 @@ BrowserWorld::State::SortWidgets() {
Widget* wb = db->second.first;

// Parenting sort
if (wa && wb && IsParent(*wa, *wb)) {
return true;
} else if (wa && wb && IsParent(*wb, *wa)) {
return false;
if (wa && wb && wa->IsVisible() && wb->IsVisible()) {
if (IsParent(*wa, *wb)) {
return true;
} else if (IsParent(*wb, *wa)) {
return false;
}
}

// Depth sort
Expand Down