-
Notifications
You must be signed in to change notification settings - Fork 75
scrollbar for desktop builds in feature lists #4145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 11 commits
d74b85b
d1e5bf2
d2b907a
b8ace95
9bb46cf
2345869
e702b7e
bb81009
d90b2c1
e388951
cc62cf3
a71daba
bdd2737
9d217c3
b0c16d5
ff33ed9
81d6b1a
57cf411
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,13 +8,33 @@ | |
| ***************************************************************************/ | ||
|
|
||
| import QtQuick | ||
| import QtQuick.Controls | ||
| import QtQml | ||
|
|
||
| // | ||
| // Hot-fix for hotfix https://github.com/MerginMaps/mobile/issues/3417 | ||
| // Seems like there is some issue with cache in ListView | ||
| // | ||
|
|
||
| ListView { | ||
| id: root | ||
|
|
||
| cacheBuffer: 0 | ||
| readonly property bool isMobile: (Qt.platform.os === "android" || Qt.platform.os === "ios") | ||
| property int scrollSpace: !isMobile ? 10 : 0 | ||
| property bool showScrollBar: true | ||
|
||
|
|
||
| ScrollBar.vertical: ScrollBar { | ||
| id: verticalScrollBar | ||
|
|
||
| policy: isMobile ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn | ||
gabriel-bolbotina marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| visible: showScrollBar | ||
| opacity: active ? 0.7 : 0.4 | ||
|
|
||
| contentItem: Rectangle { | ||
| implicitWidth: 5 | ||
kaustuvpokharel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
gabriel-bolbotina marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| radius: width / 2 | ||
| color: __style.darkGreenColor | ||
| } | ||
| } | ||
| } | ||
gabriel-bolbotina marked this conversation as resolved.
Show resolved
Hide resolved
gabriel-bolbotina marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.