fix(StatusPopupMenu): ensure menu items elide

This commit is contained in:
Pascal Precht 2021-07-19 13:11:56 +02:00 committed by Michał Cieślak
parent 8038a27ca4
commit f5a5e1ae8c
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