Merge pull request #2674

ded0a4d Scrollbar: don't autohide if enabled (except on Mac) (tobtoht)
This commit is contained in:
luigi1111 2019-12-21 18:15:09 -05:00
commit 5c801ec2ad
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
4 changed files with 9 additions and 2 deletions

View file

@ -196,6 +196,7 @@ Rectangle {
anchors.topMargin: persistentSettings.customDecorations ? 60 : 10
anchors.bottom: parent.bottom
anchors.bottomMargin: persistentSettings.customDecorations ? 15 : 10
onActiveChanged: if (!active && !isMac) active = true
}
onFlickingChanged: {

View file

@ -124,7 +124,9 @@ Rectangle {
Flickable {
id: flickable
anchors.fill: parent
ScrollBar.vertical: ScrollBar { }
ScrollBar.vertical: ScrollBar {
onActiveChanged: if (!active && !isMac) active = true
}
boundsBehavior: isMac ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds
TextArea.flickable: TextArea {

View file

@ -150,6 +150,7 @@ Rectangle {
Flickable {
id: flickable
anchors.fill: parent
boundsBehavior: isMac ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds
TextArea.flickable: TextArea {
id : consoleArea
@ -203,7 +204,9 @@ Rectangle {
}
}
ScrollBar.vertical: ScrollBar {}
ScrollBar.vertical: ScrollBar {
onActiveChanged: if (!active && !isMac) active = true
}
}
}

View file

@ -275,6 +275,7 @@ Rectangle {
anchors.topMargin: persistentSettings.customDecorations ? 60 : 10
anchors.bottom: parent.bottom
anchors.bottomMargin: persistentSettings.customDecorations ? 15 : 10
onActiveChanged: if (!active && !isMac) active = true
}
onFlickingChanged: {