diff options
author | Malte E <malte.e@mailbox.org> | 2022-02-20 11:18:39 +0100 |
---|---|---|
committer | Malte E <malte.e@mailbox.org> | 2022-02-20 11:18:39 +0100 |
commit | 8b75d869245aeae75334aa79dff7113d723b6d4d (patch) | |
tree | 6608fd3211fcdedb6605a81cde53a91e6fb410a6 | |
parent | remove touchobserver (diff) | |
download | nheko-8b75d869245aeae75334aa79dff7113d723b6d4d.tar.xz |
try to make scrollbar overlap content based on style
-rw-r--r-- | resources/qml/MessageView.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index bdf3cfcd..7cc9faa0 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -23,7 +23,6 @@ Item { ScrollBar { id: scrollbar - interactive: false parent: chat.parent anchors.top: parent.top anchors.right: parent.right @@ -34,7 +33,7 @@ Item { anchors.fill: parent - property int delegateMaxWidth: ((Settings.timelineMaxWidth > 100 && Settings.timelineMaxWidth < chatRoot.availableWidth) ? Settings.timelineMaxWidth : chatRoot.availableWidth) - chatRoot.padding * 2 + property int delegateMaxWidth: ((Settings.timelineMaxWidth > 100 && Settings.timelineMaxWidth < chatRoot.availableWidth) ? Settings.timelineMaxWidth : chatRoot.availableWidth) - chatRoot.padding * 2 - (scrollbar.isTransient? 0 : scrollbar.width) displayMarginBeginning: height / 2 displayMarginEnd: height / 2 @@ -54,7 +53,7 @@ Item { ScrollBar.vertical: scrollbar - anchors.rightMargin: scrollbar.interactive ? scrollbar.width : 0 + anchors.rightMargin: scrollbar.isTransient? 0 : scrollbar.width Rectangle { //closePolicy: Popup.NoAutoClose |