Delay binding on the menu width

Indee the MenuItem might not be linked to its Menu at creation time
which will make the binding fail and give a warning. Delay for the menu
availability.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-09-14 17:36:08 +02:00 committed by Kevin Ottens (Rebase PR Action)
parent eb0cedebfa
commit f7efe6a902

View File

@ -43,7 +43,7 @@ MenuItem {
background: Item {
height: parent.height
width: parent.menu.width
width: userLine.menu ? userLine.menu.width : 0
Rectangle {
anchors.fill: parent
anchors.margins: 1