PC3 TabButton: Fix horizontal content alignment with max text width
bug was caused by commit a45bd75800
This commit is contained in:
parent
9a8613612f
commit
cc59bb5992
@ -61,6 +61,8 @@ T.TabButton {
|
||||
Label {
|
||||
id: label
|
||||
Layout.fillWidth: true
|
||||
// allow it to shrink below implicitWidth, but not exceed implicitWidth
|
||||
Layout.maximumWidth: Math.ceil(implicitWidth)
|
||||
visible: text.length > 0 && control.display !== T.AbstractButton.IconOnly
|
||||
text: control.Kirigami.MnemonicData.richTextLabel
|
||||
font: control.font
|
||||
|
Loading…
Reference in New Issue
Block a user