Skip to content

Commit

Permalink
Scrollbar: don't autohide if enabled (except on Mac)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Dec 21, 2019
1 parent 500c7ec commit ef4df34
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions MiddlePanel.qml
Expand Up @@ -196,6 +196,11 @@ Rectangle {
anchors.topMargin: persistentSettings.customDecorations ? 60 : 10
anchors.bottom: parent.bottom
anchors.bottomMargin: persistentSettings.customDecorations ? 15 : 10
onActiveChanged: {
if(!active && !isMac){
active = true
}
}
}

onFlickingChanged: {
Expand Down
8 changes: 7 additions & 1 deletion components/StandardDialog.qml
Expand Up @@ -124,7 +124,13 @@ 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 {
Expand Down
9 changes: 8 additions & 1 deletion pages/settings/SettingsLog.qml
Expand Up @@ -150,6 +150,7 @@ Rectangle {
Flickable {
id: flickable
anchors.fill: parent
boundsBehavior: isMac ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds

TextArea.flickable: TextArea {
id : consoleArea
Expand Down Expand Up @@ -203,7 +204,13 @@ Rectangle {
}
}

ScrollBar.vertical: ScrollBar {}
ScrollBar.vertical: ScrollBar {
onActiveChanged: {
if (!active && !isMac) {
active = true
}
}
}
}
}

Expand Down
5 changes: 5 additions & 0 deletions wizard/WizardController.qml
Expand Up @@ -277,6 +277,11 @@ Rectangle {
anchors.topMargin: persistentSettings.customDecorations ? 60 : 10
anchors.bottom: parent.bottom
anchors.bottomMargin: persistentSettings.customDecorations ? 15 : 10
onActiveChanged: {
if(!active && !isMac){
active = true
}
}
}

onFlickingChanged: {
Expand Down

0 comments on commit ef4df34

Please sign in to comment.