From 5a28e48be0ebb9355c08765a43bcd06cec157a69 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Wed, 21 Apr 2021 15:27:42 +0200 Subject: [PATCH] Solve problem with padding in PlayerControls Kirigami.Page is always adding padding around the content items. This gives visual artifacts with the swipepage on the player controls. Part of the previous page was still visible because the width of the swipepage entries is less than the width of the full Kirigami.Page that they are part of. --- src/qml/PlayerControls.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qml/PlayerControls.qml b/src/qml/PlayerControls.qml index 56a3efd9..ce4dc405 100644 --- a/src/qml/PlayerControls.qml +++ b/src/qml/PlayerControls.qml @@ -20,6 +20,9 @@ Kirigami.Page { clip: true Layout.margins: 0 + padding: 0 + bottomPadding: Kirigami.Units.gridUnit + ColumnLayout { anchors.fill: parent anchors.topMargin:0 @@ -122,6 +125,8 @@ Kirigami.Page { implicitHeight: mediaControls.height Layout.fillWidth: true Layout.margins: 0 + Layout.leftMargin: Kirigami.Units.gridUnit + Layout.rightMargin: Kirigami.Units.gridUnit ColumnLayout { id: mediaControls