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

Commit d96fb12

Browse files
MortimerGorobluemarvin
authored andcommitted
Do not check parent sorting in invisible widgets (#2162)
1 parent d26472e commit d96fb12

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/src/main/cpp/BrowserWorld.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,12 @@ BrowserWorld::State::SortWidgets() {
638638
Widget* wb = db->second.first;
639639

640640
// Parenting sort
641-
if (wa && wb && IsParent(*wa, *wb)) {
642-
return true;
643-
} else if (wa && wb && IsParent(*wb, *wa)) {
644-
return false;
641+
if (wa && wb && wa->IsVisible() && wb->IsVisible()) {
642+
if (IsParent(*wa, *wb)) {
643+
return true;
644+
} else if (IsParent(*wb, *wa)) {
645+
return false;
646+
}
645647
}
646648

647649
// Depth sort

0 commit comments

Comments
 (0)