fix(StatusPopupMenu): ensure menu items elide

This commit is contained in:
Pascal Precht 2021-07-19 13:11:56 +02:00 committed by Pascal Precht
parent 18dbaadd43
commit d1f8e3e5f0
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,8 @@ Menu {
contentItem: StatusBaseText { contentItem: StatusBaseText {
anchors.left: statusPopupMenuItem.indicator.right anchors.left: statusPopupMenuItem.indicator.right
anchors.right: arrowIcon.visible ? arrowIcon.left : arrowIcon.right
anchors.rightMargin: 8
anchors.leftMargin: 4 anchors.leftMargin: 4
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
@ -106,6 +108,7 @@ Menu {
} }
arrow: StatusIcon { arrow: StatusIcon {
id: arrowIcon
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 8 anchors.rightMargin: 8