Skip to content

Commit

Permalink
fix: Скроллинг
Browse files Browse the repository at this point in the history
  • Loading branch information
levovix0 committed Dec 30, 2021
1 parent 5c58e01 commit 47bb14b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
14 changes: 7 additions & 7 deletions qml/pages/MainPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ DPage {

Component.onCompleted: HomePlaylistsModel.load()

ScrollView {
Flickable {
id: _scroll
anchors.fill: parent
clip: true
leftPadding: 25
bottomPadding: 25
rightPadding: 25
topPadding: 25
leftMargin: 25
bottomMargin: 25
rightMargin: 25
topMargin: 25

ScrollBar.vertical.policy: ScrollBar.AlwaysOff
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
contentWidth: root.width - 50
contentHeight: _layout.height

MouseArea {
width: root.width
Expand Down
12 changes: 5 additions & 7 deletions qml/pages/SettingsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@ DPage {
id: root
property real scroll: 0

ScrollView {
Flickable {
id: _scroll
anchors.fill: parent
clip: true
leftPadding: 10
bottomPadding: 10
rightPadding: 10
topPadding: _label.visible? 30 : 10
bottomMargin: 10
topMargin: _label.visible? 30 : 10

ScrollBar.vertical.policy: ScrollBar.AlwaysOff
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
contentWidth: root.width
contentHeight: _layout.height

MouseArea {
width: root.width
Expand Down

0 comments on commit 47bb14b

Please sign in to comment.