Skip to content

Commit

Permalink
fix: Fixed list scrolling blank
Browse files Browse the repository at this point in the history
Fixed list scrolling blank

Bug: https://pms.uniontech.com/bug-view-271733.html
Log: Fixed list scrolling blank
  • Loading branch information
pengfeixx committed Sep 2, 2024
1 parent 4d7b606 commit e09f495
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/music-player/albumlist/AlbumGridView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Rectangle {
anchors.leftMargin: (albumGrid.width - width) / 2
anchors.rightMargin: (albumGrid.width - width) / 2
cellWidth: 208; cellHeight: 242
boundsBehavior: Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar {}
model: albumModel
delegate: AlbumGridDelegate{
Expand Down
1 change: 1 addition & 0 deletions src/music-player/albumlist/AlbumListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Rectangle {
id: listview
width: rootRectangle.width; height: rootRectangle.height - 36
anchors.top: headerView.bottom
boundsBehavior: Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar {}
model: albumModels
clip: true
Expand Down
1 change: 1 addition & 0 deletions src/music-player/musicList/AllMusicListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Rectangle {
width: parent.width
height: parent.height - 38
anchors.top: headerView.bottom;
boundsBehavior: Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar {}
model: mediaModel
clip: true
Expand Down
1 change: 1 addition & 0 deletions src/music-player/musicsublist/AlbumSublistView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Rectangle {
anchors.left: musicSublistTitle.left
anchors.top: musicSublistTitle.bottom
anchors.topMargin: 36
boundsBehavior: Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar {
id:albumSublistScrollBar
stepSize: mediaListModels.count > 1 ? 1 / mediaListModels.count : 0.1
Expand Down
1 change: 1 addition & 0 deletions src/music-player/musicsublist/ArtistSublistView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Rectangle {
height: rootrectangle.height - musicSublistTitle.height - 36
anchors.left: musicSublistTitle.left/*; anchors.leftMargin: 20*/
anchors.top: musicSublistTitle.bottom; anchors.topMargin: 36
boundsBehavior: Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar {
id:artistSublistScrollBar
stepSize: mediaListModels.count > 1 ? 1 / mediaListModels.count : 0.1
Expand Down
1 change: 1 addition & 0 deletions src/music-player/singerlist/ArtistView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Rectangle {
anchors.left: viewParent.left
anchors.leftMargin: (viewParent.width - width) / 2
cellWidth: 208; cellHeight: 230
boundsBehavior: Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar {}
model: artistModels
delegate: ArtistGridDelegate{
Expand Down

0 comments on commit e09f495

Please sign in to comment.