mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Room list: add scrollbar when not collapsed
This commit is contained in:
parent
316eb07dbf
commit
ac19c6c92b
1 changed files with 7 additions and 1 deletions
|
@ -60,6 +60,12 @@ Page {
|
||||||
model: Rooms
|
model: Rooms
|
||||||
reuseItems: true
|
reuseItems: true
|
||||||
|
|
||||||
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
id: roomlistscrollbar
|
||||||
|
active: true
|
||||||
|
visible: (! collapsed) && (parent.contentHeight > parent.height)
|
||||||
|
}
|
||||||
|
|
||||||
ScrollHelper {
|
ScrollHelper {
|
||||||
flickable: parent
|
flickable: parent
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -258,7 +264,7 @@ Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
height: avatarSize + 2 * Nheko.paddingMedium
|
height: avatarSize + 2 * Nheko.paddingMedium
|
||||||
width: ListView.view.width
|
width: ListView.view.width - roomlistscrollbar.width
|
||||||
state: "normal"
|
state: "normal"
|
||||||
ToolTip.visible: hovered && collapsed
|
ToolTip.visible: hovered && collapsed
|
||||||
ToolTip.delay: Nheko.tooltipDelay
|
ToolTip.delay: Nheko.tooltipDelay
|
||||||
|
|
Loading…
Reference in a new issue