Fix N*Pill expanded text layout
This commit is contained in:
parent
1ee14df915
commit
290ba4ac03
2 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ Item {
|
||||||
id: textItem
|
id: textItem
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
anchors.horizontalCenterOffset: openLeftward ? -6 * scaling : 6 * scaling // Adjust based on opening direction
|
||||||
text: root.text
|
text: root.text
|
||||||
font.pointSize: Style.fontSizeXXS * scaling
|
font.pointSize: Style.fontSizeXXS * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ Item {
|
||||||
id: textItem
|
id: textItem
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
anchors.verticalCenterOffset: openUpward ? -6 * scaling : 6 * scaling // Adjust based on opening direction
|
||||||
text: root.text
|
text: root.text
|
||||||
fontSize: Style.fontSizeXXS * scaling
|
fontSize: Style.fontSizeXXS * scaling
|
||||||
fontWeight: Style.fontWeightBold
|
fontWeight: Style.fontWeightBold
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue