Skip to content

Commit 911b124

Browse files
authored
Merge pull request #103 from Esri/luke8660/authView_maxZ
set the auth view to be on top
2 parents 83cfc6f + ee64f84 commit 911b124

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ Item {
7272
id: authView
7373
anchors.fill: parent
7474

75+
Component.onCompleted: {
76+
var parentsChildren = parent.children;
77+
var maxZ = 0;
78+
for (var i = 0; i < parentsChildren.length; i++){
79+
if (parentsChildren[i] === authView)
80+
continue;
81+
maxZ = Math.max(maxZ, parentsChildren[i].z);
82+
}
83+
authView.z = maxZ + 1; // the view should be shown on top
84+
}
85+
7586
/*!
7687
\brief The AuthenticationManager instance.
7788

0 commit comments

Comments
 (0)