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

Commit

Permalink
Do not check parent sorting in invisible widgets (#2162)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Nov 5, 2019
1 parent d26472e commit d96fb12
Showing 1 changed file with 6 additions and 4 deletions.
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

0 comments on commit d96fb12

Please sign in to comment.