mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
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:
commit
bb8ca05162
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue