Merge pull request #4216 from nextcloud/bugfix/account-menu-scroll

Allow account menu to scroll when content height is larger than menu height
This commit is contained in:
Claudio Cambra 2022-02-01 17:41:23 +01:00 committed by GitHub
commit bb8ca05162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,6 +174,22 @@ Window {
radius: Style.currentAccountButtonRadius
}
contentItem: ScrollView {
id: accMenuScrollView
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
data: WheelHandler {
target: accMenuScrollView.contentItem
}
ListView {
implicitHeight: contentHeight
model: accountMenu.contentModel
interactive: true
clip: true
currentIndex: accountMenu.currentIndex
}
}
onClosed: {
// HACK: reload account Instantiator immediately by restting it - could be done better I guess
// see also onVisibleChanged above