Skip to content
Snippets Groups Projects
Commit f7d76186 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qml: use integer size in FadingEdgeListView

parent 2e072643
No related branches found
No related tags found
1 merge request!2740qml: fix resize artifacts with FadingEdgeListView
Pipeline #278201 canceled with stage
in 28 minutes and 48 seconds
......@@ -136,7 +136,11 @@ ListView {
readonly property bool effectCompatible: !(((GraphicsInfo.shaderType === GraphicsInfo.GLSL)) &&
((GraphicsInfo.shaderSourceType & GraphicsInfo.ShaderSourceString)))
anchors.fill: parent
anchors.top: parent.top
anchors.left: parent.left
implicitWidth: Math.ceil(parent.width)
implicitHeight: Math.ceil(parent.height)
z: root.contentItem.z
......@@ -144,8 +148,8 @@ ListView {
sourceRect: Qt.rect(root.contentX,
root.contentY,
root.width,
root.height)
width,
height)
// Make sure contentItem is not rendered twice:
hideSource: visible
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment