try to make scrollbar overlap content based on style
This commit is contained in:
parent
ea7c8d1427
commit
8b75d86924
@ -23,7 +23,6 @@ Item {
|
|||||||
|
|
||||||
ScrollBar {
|
ScrollBar {
|
||||||
id: scrollbar
|
id: scrollbar
|
||||||
interactive: false
|
|
||||||
parent: chat.parent
|
parent: chat.parent
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
@ -34,7 +33,7 @@ Item {
|
|||||||
|
|
||||||
anchors.fill: parent
|
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
|
displayMarginBeginning: height / 2
|
||||||
displayMarginEnd: height / 2
|
displayMarginEnd: height / 2
|
||||||
@ -54,7 +53,7 @@ Item {
|
|||||||
|
|
||||||
ScrollBar.vertical: scrollbar
|
ScrollBar.vertical: scrollbar
|
||||||
|
|
||||||
anchors.rightMargin: scrollbar.interactive ? scrollbar.width : 0
|
anchors.rightMargin: scrollbar.isTransient? 0 : scrollbar.width
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
//closePolicy: Popup.NoAutoClose
|
//closePolicy: Popup.NoAutoClose
|
||||||
|
Loading…
Reference in New Issue
Block a user