Explicitly set parent for scrollbars to prevent them from showing on some platforms

pull/1376/head
Nicolas Werner 2 years ago
parent 60606133cb
commit 5457d67c98
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 6
      resources/qml/CommunitiesList.qml
  2. 6
      resources/qml/RoomList.qml

@ -36,10 +36,10 @@ Page {
height: parent.height
model: Communities.filtered()
ScrollBar {
ScrollBar.vertical: ScrollBar {
id: scrollbar
parent: !collapsed && Settings.scrollbarsInRoomlist ? communitiesList : null
}
ScrollBar.vertical: (!collapsed && Settings.scrollbarsInRoomlist) ? scrollbar : null
ScrollHelper {
flickable: parent
@ -88,7 +88,7 @@ Page {
required property var model
height: avatarSize + 2 * Nheko.paddingMedium
width: ListView.view.width - (scrollbar.interactive && scrollbar.visible ? scrollbar.width : 0)
width: ListView.view.width - ((scrollbar.interactive && scrollbar.visible && scrollbar.parent) ? scrollbar.width : 0)
state: "normal"
ToolTip.visible: hovered && collapsed
ToolTip.text: model.tooltip

@ -60,10 +60,10 @@ Page {
model: Rooms
//reuseItems: true
ScrollBar {
ScrollBar.vertical: ScrollBar {
id: scrollbar
parent: !collapsed && Settings.scrollbarsInRoomlist ? roomlist : null
}
ScrollBar.vertical: (!collapsed && Settings.scrollbarsInRoomlist) ? scrollbar : null
ScrollHelper {
flickable: parent
@ -263,7 +263,7 @@ Page {
}
height: avatarSize + 2 * Nheko.paddingMedium
width: ListView.view.width - (scrollbar.interactive && scrollbar.visible ? scrollbar.width : 0)
width: ListView.view.width - ((scrollbar.interactive && scrollbar.visible && scrollbar.parent) ? scrollbar.width : 0)
state: "normal"
ToolTip.visible: hovered && collapsed
ToolTip.delay: Nheko.tooltipDelay

Loading…
Cancel
Save