Verified Commit a3ef49cb authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/userswitcher: fix `fontSizeMode` not working in vertical panels

It needs a explicit width to work.
parent 10b7a349
......@@ -86,12 +86,15 @@ Item {
PlasmaComponents3.Label {
id: label
width: root.isVertical ? compactRoot.width : undefined
text: root.displayedName
height: compactRoot.height
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.NoWrap
fontSizeMode: Text.VerticalFit
fontSizeMode: root.isVertical ? Text.HorizontalFit : Text.VerticalFit
font.pixelSize: tooSmall ? PlasmaCore.Theme.defaultFont.pixelSize : PlasmaCore.Units.roundToIconSize(PlasmaCore.Units.gridUnit * 2)
minimumPointSize: PlasmaCore.Theme.smallestFont.pointSize
visible: root.showName
Supports Markdown
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