[vlc-commits] qml: make the expandgrid view take most of the vertical place
Pierre Lamot
git at videolan.org
Fri Jan 10 15:06:51 CET 2020
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Fri Dec 20 14:43:58 2019 +0100| [b20f1a009268dd308ab4779678f2885a9e6670e7] | committer: Jean-Baptiste Kempf
qml: make the expandgrid view take most of the vertical place
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b20f1a009268dd308ab4779678f2885a9e6670e7
---
modules/gui/qt/medialibrary/qml/VideoDisplay.qml | 2 +-
modules/gui/qt/widgets/qml/ExpandGridView.qml | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
index 7eb87eb2fb..5aa953fc76 100644
--- a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
@@ -150,7 +150,7 @@ Widgets.NavigableFocusScope {
expandDelegate: VideoInfoExpandPanel {
visible: !videosGV.isAnimating
- height: implicitHeight
+ implicitHeight: videosGV.height - videosGV.cellHeight
width: videosGV.width
onRetract: videosGV.retract()
diff --git a/modules/gui/qt/widgets/qml/ExpandGridView.qml b/modules/gui/qt/widgets/qml/ExpandGridView.qml
index 4b6f49952f..08ffae4945 100644
--- a/modules/gui/qt/widgets/qml/ExpandGridView.qml
+++ b/modules/gui/qt/widgets/qml/ExpandGridView.qml
@@ -363,6 +363,7 @@ NavigableFocusScope {
// Sliding animation
var currentItemYPos = root.getItemPos(_expandIndex)[1]
+ currentItemYPos += root.cellHeight / 2
animateFlickableContentY(currentItemYPos)
}
More information about the vlc-commits
mailing list