Index: sources/gui/qml/components/HeaderBarPopup.qml =================================================================== diff -u -ra2f4636c3ecf98ec1e38f812f4602e0d67d4b7bf -r51c91d35b3d0d1acac4dfccf6057d3949f302448 --- sources/gui/qml/components/HeaderBarPopup.qml (.../HeaderBarPopup.qml) (revision a2f4636c3ecf98ec1e38f812f4602e0d67d4b7bf) +++ sources/gui/qml/components/HeaderBarPopup.qml (.../HeaderBarPopup.qml) (revision 51c91d35b3d0d1acac4dfccf6057d3949f302448) @@ -5,6 +5,18 @@ import "qrc:/components" ModalDialog { id: _root + property int type: -1 + + signal adjustPosition (var type) + + enum Button { Prescription, + WiFi, + BlueTooth, + CloudSync, + Storage, + Settings, + Information } + implicitWidth : contentItem.implicitWidth + padding * 2 // Auto-size to content implicitHeight : contentItem.implicitHeight + padding * 2 width : implicitWidth @@ -15,4 +27,6 @@ y : Variables.headerHeight + 5 backgroundColor : "#D2D6DB" showDropShadow : true + + onImplicitWidthChanged: Qt.callLater(function() { adjustPosition(type) }) }