PC3 TabButton: Fix horizontal content alignment with max text width

bug was caused by commit a45bd75800
This commit is contained in:
Noah Davis 2021-05-13 23:01:15 -04:00
parent 9a8613612f
commit cc59bb5992

View File

@ -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