Commit e7da61c1 authored by Nate Graham's avatar Nate Graham 🔩

Revert "[Folder view] Fix binding loop on width"

This reverts commit 6b1cc98f.

The change may have resolved the binding loop, but it regressed text
display for people without high DPI screens. Apparently the old code was
having the effect of aligning the text to pixel boundaries, while the new
code does not. I will find another way to resolve the binding loop.

BUG: 423511
FIXED-IN: 5.19.5
parent 889b9df0
......@@ -315,14 +315,12 @@ Item {
AnchorChanges {
target: label icon.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.horizontalCenter: parent.horizontalCenter
PropertyChanges {
target: label
anchors.topMargin: units.smallSpacing
anchors.leftMargin: units.smallSpacing / 2
anchors.rightMargin: units.smallSpacing / 2
width: Math.round(Math.min(label.implicitWidth + units.smallSpacing, parent.width - units.smallSpacing))
maximumLineCount: plasmoid.configuration.textLines
horizontalAlignment: Text.AlignHCenter
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment