[vlc-devel] [PATCH 12/12] qml: correctly set cellHeight for grid items in NetworkBrowseDisplay

Prince Gupta guptaprince8832 at gmail.com
Mon Aug 24 17:08:29 CEST 2020


there is no subtitle but height for that included in VLCStyle.gridItem_network_height
---
 modules/gui/qt/network/qml/NetworkBrowseDisplay.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml b/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
index e9ddc006bf..87edded22d 100644
--- a/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
+++ b/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
@@ -184,7 +184,7 @@ Widgets.NavigableFocusScope {
             }
 
             cellWidth: VLCStyle.gridItem_network_width
-            cellHeight: VLCStyle.gridItem_network_height
+            cellHeight: VLCStyle.gridCover_network_height + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal
 
             delegate: NetworkGridItem {
                 id: delegateGrid
@@ -193,6 +193,7 @@ Widgets.NavigableFocusScope {
                 property int index: -1
 
                 subtitle: ""
+                height: VLCStyle.gridCover_network_height + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal
 
                 onPlayClicked: selectionModel.model.addAndPlay( index )
                 onItemClicked : {
-- 
2.25.1



More information about the vlc-devel mailing list