fix(@desktop/onboarding): adapt account dropdown

-use StatusQ with updated PopupMenu

Fixes #6822

Requires https://github.com/status-im/StatusQ/pull/853
This commit is contained in:
PavelS 2022-08-15 11:05:03 +03:00 committed by PavelS
parent 185de9f4c8
commit 28bd67072d
1 changed files with 7 additions and 0 deletions

View File

@ -242,6 +242,13 @@ Item {
if (accountsPopup.opened) {
accountsPopup.close()
} else {
accountsPopup.topMargin =
Qt.binding(function(){
return userInfo.mapToItem(
root,
root.height,
userInfo.height + Style.current.halfPadding).y
})
accountsPopup.popup(
userInfo,
(userInfo.width - accountsPopup.width) / 2,