forked from pool/kirigami2
2f470b3b8c
- Add patch to workaround visual glitches with unaligned text (boo#1117346, kde#401174): * 0001-make-sure-scroll-views-are-pixel-aligned.patch OBS-URL: https://build.opensuse.org/request/show/652224 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kirigami2?expand=0&rev=68
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From 2b3b1f8423018d764d21905a98ba1473592985bc Mon Sep 17 00:00:00 2001
|
|
From: Marco Martin <notmart@gmail.com>
|
|
Date: Mon, 26 Nov 2018 14:33:52 +0100
|
|
Subject: [PATCH] make sure scroll views are pixel aligned
|
|
References: boo#1117346, kde#401174
|
|
|
|
---
|
|
src/controls/templates/private/ScrollView.qml | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
Index: kirigami2-5.52.0/src/controls/templates/private/ScrollView.qml
|
|
===================================================================
|
|
--- kirigami2-5.52.0.orig/src/controls/templates/private/ScrollView.qml
|
|
+++ kirigami2-5.52.0/src/controls/templates/private/ScrollView.qml
|
|
@@ -113,6 +113,7 @@ MouseArea {
|
|
//TODO: find a way to make flicking work on laptops with touch screen
|
|
flickableItem.interactive = Settings.tabletMode;
|
|
flickableItem.anchors.fill = flickableParent;
|
|
+ flickableItem.pixelAligned = true;
|
|
|
|
scrollBarCreationTimer.restart();
|
|
}
|
|
@@ -162,6 +163,7 @@ MouseArea {
|
|
anchors {
|
|
fill: parent
|
|
}
|
|
+ pixelAligned: true
|
|
contentWidth: root.contentItem ? root.contentItem.width : 0
|
|
contentHeight: root.contentItem ? root.contentItem.height : 0
|
|
}
|