From c6b336927a117aeda7c31763498430f75637c261 Mon Sep 17 00:00:00 2001 From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com> Date: Tue, 25 Aug 2020 15:47:20 -0400 Subject: [PATCH] mainview: fix the dropdown indicator behind the share button issue Account combo box dropdown indicator will be hidden behind the share qrcode button when the username is too long. Gitlab: #16 Change-Id: I24d723be1f064a4e0328e262f11238b5c0d6943f --- src/mainview/components/AccountComboBox.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mainview/components/AccountComboBox.qml b/src/mainview/components/AccountComboBox.qml index e0529fd7c..5c5870847 100644 --- a/src/mainview/components/AccountComboBox.qml +++ b/src/mainview/components/AccountComboBox.qml @@ -140,6 +140,8 @@ ComboBox { } Image { + id: arrowDropDown + anchors.left: textUserAliasRoot.right anchors.verticalCenter: textUserAliasRoot.verticalCenter @@ -169,7 +171,8 @@ ComboBox { font: textUserAliasRoot.font elide: Text.ElideRight - elideWidth: accountComboBox.width - userImageRoot.width - settingsButton.width - qrCodeGenerateButton.width - 55 + elideWidth: accountComboBox.width - userImageRoot.width - settingsButton.width + - arrowDropDown.width - qrCodeGenerateButton.width - 55 /* @@ -190,7 +193,8 @@ ComboBox { font: textUsernameRoot.font elide: Text.ElideRight - elideWidth: accountComboBox.width - userImageRoot.width - settingsButton.width - qrCodeGenerateButton.width - 55 + elideWidth: accountComboBox.width - userImageRoot.width - settingsButton.width + - qrCodeGenerateButton.width - 55 /* -- GitLab