Skip to content

Commit ee64f84

Browse files
author
Luke Smallwood
committed
fix up the max z logic
1 parent 9cb0c6c commit ee64f84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Imports/ArcGIS/Runtime/Toolkit/Dialogs.2.0/AuthenticationView.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ Item {
7676
var parentsChildren = parent.children;
7777
var maxZ = 0;
7878
for (var i = 0; i < parentsChildren.length; i++){
79-
if (parentsChildren[i] === item)
79+
if (parentsChildren[i] === authView)
8080
continue;
81-
maxZ = Math.max(maxZ, parentsChildren[z]);
82-
z = maxZ + 1; // the view should be shown on top
81+
maxZ = Math.max(maxZ, parentsChildren[i].z);
8382
}
83+
authView.z = maxZ + 1; // the view should be shown on top
8484
}
8585

8686
/*!

0 commit comments

Comments
 (0)