fix tab button width
This commit is contained in:
parent
c3d2bd8293
commit
4f494696d9
2 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ Control.TabBar {
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
id: tabText
|
id: tabText
|
||||||
width: Math.min(implicitWidth, mainItem.width / mainItem.model.length)
|
width: implicitWidth
|
||||||
font {
|
font {
|
||||||
pixelSize: mainItem.pixelSize
|
pixelSize: mainItem.pixelSize
|
||||||
weight: mainItem.textWeight
|
weight: mainItem.textWeight
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ ColumnLayout {
|
||||||
onCurrentIndexChanged: console.log("current index", currentIndex)
|
onCurrentIndexChanged: console.log("current index", currentIndex)
|
||||||
visible: mainItem.tabbarModel !== undefined
|
visible: mainItem.tabbarModel !== undefined
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: implicitWidth
|
||||||
model: mainItem.tabbarModel
|
model: mainItem.tabbarModel
|
||||||
pixelSize: Typography.h3m.pixelSize
|
pixelSize: Typography.h3m.pixelSize
|
||||||
textWeight: Typography.h3m.weight
|
textWeight: Typography.h3m.weight
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue