fix(Profile/LeftTabView): menu should not scroll horizontally

Closes #5276
This commit is contained in:
Alexandra Betouni 2022-05-31 16:32:39 +03:00 committed by Alexandra Betouni
parent 9e89915414
commit 195419a23d

View File

@ -20,9 +20,8 @@ Item {
} }
ScrollView { ScrollView {
ScrollBar.horizontal.policy: Qt.ScrollBarAlwaysOff contentWidth: availableWidth
contentHeight: profileMenu.height + 24 contentHeight: profileMenu.height + 24
clip: true
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: Style.current.smallPadding anchors.rightMargin: Style.current.smallPadding
anchors.left: parent.left anchors.left: parent.left
@ -30,6 +29,8 @@ Item {
anchors.top: title.bottom anchors.top: title.bottom
anchors.topMargin: Style.current.padding anchors.topMargin: Style.current.padding
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
clip: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
MenuPanel { MenuPanel {
id: profileMenu id: profileMenu