Merge pull request #951 from maltee1/fix_timeline_scrollbar
Fix timeline scrollbar
This commit is contained in:
commit
b3da8738bf
@ -23,23 +23,17 @@ Item {
|
||||
|
||||
ScrollBar {
|
||||
id: scrollbar
|
||||
interactive: !touchObserver.wasTouched
|
||||
parent: chat.parent
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
}
|
||||
|
||||
EventObserver {
|
||||
id: touchObserver
|
||||
anchors.fill: parent
|
||||
|
||||
ListView {
|
||||
id: chat
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
property int delegateMaxWidth: ((Settings.timelineMaxWidth > 100 && Settings.timelineMaxWidth < chatRoot.availableWidth) ? Settings.timelineMaxWidth : chatRoot.availableWidth) - chatRoot.padding * 2 - scrollbar.width
|
||||
property int delegateMaxWidth: ((Settings.timelineMaxWidth > 100 && Settings.timelineMaxWidth < chatRoot.availableWidth) ? Settings.timelineMaxWidth : chatRoot.availableWidth) - chatRoot.padding * 2 - (scrollbar.interactive? scrollbar.width : 0)
|
||||
|
||||
displayMarginBeginning: height / 2
|
||||
displayMarginEnd: height / 2
|
||||
@ -59,7 +53,7 @@ Item {
|
||||
|
||||
ScrollBar.vertical: scrollbar
|
||||
|
||||
anchors.rightMargin: scrollbar.interactive ? scrollbar.width : 0
|
||||
anchors.rightMargin: scrollbar.interactive? scrollbar.width : 0
|
||||
|
||||
Rectangle {
|
||||
//closePolicy: Popup.NoAutoClose
|
||||
@ -570,8 +564,6 @@ Item {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Platform.Menu {
|
||||
|
Loading…
Reference in New Issue
Block a user