aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/TabButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/material/TabButton.qml')
-rw-r--r--src/imports/controls/material/TabButton.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/material/TabButton.qml b/src/imports/controls/material/TabButton.qml
index 67473744..22dcd7a0 100644
--- a/src/imports/controls/material/TabButton.qml
+++ b/src/imports/controls/material/TabButton.qml
@@ -42,9 +42,9 @@ T.TabButton {
id: control
implicitWidth: Math.max(background ? background.implicitWidth : 0,
- label ? label.implicitWidth + leftPadding + rightPadding : 0)
+ label ? label.contentWidth + leftPadding + rightPadding : 0)
implicitHeight: Math.max(background ? background.implicitHeight : 0,
- label ? label.implicitHeight + topPadding + bottomPadding : 0)
+ label ? label.contentHeight + topPadding + bottomPadding : 0)
baselineOffset: label ? label.y + label.baselineOffset : 0
padding: 6