summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-02-13 22:35:04 +0100
committer Eric Hameleers <alien@slackware.com>2020-02-13 22:35:04 +0100
commit5ee4a96400c2b27751736f9e2c301acfb6d7b720 (patch)
treefe1903e9e201852f2d608c4fd39ff77170dbb11b
parentbc580498fbedada3cdddb45146b31c433822666f (diff)
downloadktown-5ee4a96400c2b27751736f9e2c301acfb6d7b720.tar.gz
ktown-5ee4a96400c2b27751736f9e2c301acfb6d7b720.tar.xz
qqc2-desktop-style: fix scrollbar behaviour
-rw-r--r--kde/patch/qqc2-desktop-style.patch5
-rw-r--r--kde/patch/qqc2-desktop-style/qqc2-desktop-style_scrollbar.patch51
2 files changed, 56 insertions, 0 deletions
diff --git a/kde/patch/qqc2-desktop-style.patch b/kde/patch/qqc2-desktop-style.patch
new file mode 100644
index 0000000..85648d5
--- /dev/null
+++ b/kde/patch/qqc2-desktop-style.patch
@@ -0,0 +1,5 @@
+# Use scrollbar height as bottom padding, not width.
+# Should be fixed post qqc2-desktop-style 5.67.0):
+cat $CWD/patch/qqc2-desktop-style/qqc2-desktop-style_scrollbar.patch | patch -p1 --verbose || { touch ${SLACK_KDE_BUILD_DIR}/${PKGNAME}.failed ; continue ; }
+
+
diff --git a/kde/patch/qqc2-desktop-style/qqc2-desktop-style_scrollbar.patch b/kde/patch/qqc2-desktop-style/qqc2-desktop-style_scrollbar.patch
new file mode 100644
index 0000000..9f577e2
--- /dev/null
+++ b/kde/patch/qqc2-desktop-style/qqc2-desktop-style_scrollbar.patch
@@ -0,0 +1,51 @@
+From 6995b4ae81a2f3ca3c24d2fa6d1560bfe0898737 Mon Sep 17 00:00:00 2001
+From: Arjen Hiemstra <ahiemstra@heimr.nl>
+Date: Mon, 10 Feb 2020 11:47:00 +0100
+Subject: ScrollView: Use scrollbar height as bottom padding, not width
+
+Summary:
+Apparently I accidentally used the bottom scrollbar width instead of
+height. Oops.
+
+Test Plan: ScrollView with horizontal scrollbar no longer hides content
+
+Reviewers: #plasma, davidedmundson
+
+Reviewed By: #plasma, davidedmundson
+
+Subscribers: plasma-devel
+
+Tags: #plasma
+
+Differential Revision: https://phabricator.kde.org/D27280
+---
+ org.kde.desktop/ScrollView.qml | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/org.kde.desktop/ScrollView.qml b/org.kde.desktop/ScrollView.qml
+index 4bea5c7..38bc8ed 100644
+--- a/org.kde.desktop/ScrollView.qml
++++ b/org.kde.desktop/ScrollView.qml
+@@ -45,7 +45,7 @@ T.ScrollView {
+ rightPadding: (internal.backgroundVisible && background.hasOwnProperty("rightPadding") ? background.rightPadding : 0)
+ + (!LayoutMirroring.enabled ? internal.verticalScrollBarWidth : 0)
+ bottomPadding: (internal.backgroundVisible && background.hasOwnProperty("bottomPadding") ? background.bottomPadding : 0)
+- + internal.horizontalScrollBarWidth
++ + internal.horizontalScrollBarHeight
+
+ //create a background only after Component.onCompleted, see on the component creation below for explanation
+ Component.onCompleted: {
+@@ -97,7 +97,7 @@ T.ScrollView {
+
+ readonly property bool backgroundVisible: controlRoot.background && controlRoot.background.visible
+ readonly property real verticalScrollBarWidth: controlRoot.ScrollBar.vertical.visible && !Kirigami.Settings.tabletMode ? controlRoot.ScrollBar.vertical.width : 0
+- readonly property real horizontalScrollBarWidth: controlRoot.ScrollBar.horizontal.visible && !Kirigami.Settings.tabletMode ? controlRoot.ScrollBar.horizontal.width : 0
++ readonly property real horizontalScrollBarHeight: controlRoot.ScrollBar.horizontal.visible && !Kirigami.Settings.tabletMode ? controlRoot.ScrollBar.horizontal.height : 0
+ }
+ ]
+ ScrollBar.vertical: ScrollBar {
+--
+cgit v1.1
+
+
+