From c6e4cf627c6a6d41046b076c66d1b4d617838620 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Mon, 21 Mar 2022 23:19:34 +0200 Subject: [PATCH] fix(SeedPhraseInput): Fixing SeedPhraseInput control height The suggestion list should be showing up to 5 seed word entries --- src/StatusQ/Controls/StatusSeedPhraseInput.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Controls/StatusSeedPhraseInput.qml b/src/StatusQ/Controls/StatusSeedPhraseInput.qml index d2d6c45f..25cc4685 100644 --- a/src/StatusQ/Controls/StatusSeedPhraseInput.qml +++ b/src/StatusQ/Controls/StatusSeedPhraseInput.qml @@ -1,5 +1,6 @@ import QtQuick 2.12 import QtGraphicalEffects 1.13 +import QtQuick.Controls 2.12 import StatusQ.Controls 0.1 import StatusQ.Popups 0.1 @@ -61,7 +62,7 @@ Item { Item { id: suggListContainer width: seedSuggestionsList.width - height: (seedSuggestionsList.count*34) + 16 + height: (((seedSuggestionsList.count <= 5) ? seedSuggestionsList.count : 5) *34) + 16 anchors.left: parent.left anchors.leftMargin: 16 anchors.top: seedWordInput.bottom @@ -93,6 +94,7 @@ Item { anchors.bottom: parent.bottom anchors.bottomMargin: 8 clip: true + ScrollBar.vertical: ScrollBar { } delegate: Item { id: txtDelegate width: suggWord.contentWidth