[vlc-commits] qml: leave space for borders of GridItem in VideoDisplayRecentVideos

Prince Gupta git at videolan.org
Wed Jan 27 09:25:30 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Jan  7 19:41:48 2021 +0530| [03394c2d95bcd83e99b9cd0dba374d4e5f02cc28] | committer: Pierre Lamot

qml: leave space for borders of GridItem in VideoDisplayRecentVideos

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=03394c2d95bcd83e99b9cd0dba374d4e5f02cc28
---

 modules/gui/qt/medialibrary/qml/VideoDisplayRecentVideos.qml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/medialibrary/qml/VideoDisplayRecentVideos.qml b/modules/gui/qt/medialibrary/qml/VideoDisplayRecentVideos.qml
index afb1901ebd..9c05d66c89 100644
--- a/modules/gui/qt/medialibrary/qml/VideoDisplayRecentVideos.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoDisplayRecentVideos.qml
@@ -75,7 +75,7 @@ Widgets.NavigableFocusScope {
             id: recentVideosListView
 
             width: parent.width
-            implicitHeight: VLCStyle.gridItem_video_height_large
+            implicitHeight: VLCStyle.gridItem_video_height_large + VLCStyle.gridItemSelectedBorder + VLCStyle.margin_xlarge
             spacing: VLCStyle.column_margin_width
             orientation: ListView.Horizontal
 
@@ -96,6 +96,8 @@ Widgets.NavigableFocusScope {
                 id: recentVideoGridItem
 
                 focus: true
+                x: selectedBorderWidth
+                y: selectedBorderWidth
 
                 image: model.thumbnail || VLCStyle.noArtCover
                 title: model.title || i18n.qtr("Unknown title")



More information about the vlc-commits mailing list