Skip to content
Snippets Groups Projects
Commit eaababc8 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

callactionbar: fix submenus layouts

Change-Id: I1d100b48db6ad95bf5e09642e9c12aad8ccf110a
parent aa96b723
No related branches found
No related tags found
No related merge requests found
...@@ -203,14 +203,22 @@ ItemDelegate { ...@@ -203,14 +203,22 @@ ItemDelegate {
anchors.fill: parent anchors.fill: parent
color: menuItem.down ? "#c4aaaaaa" : menuItem.hovered ? "#c4777777" : "transparent" color: menuItem.down ? "#c4aaaaaa" : menuItem.hovered ? "#c4777777" : "transparent"
} }
contentItem: ColumnLayout { // After update to qt 6.4.3 the layout was broken, adding a Rectangle
// as top level in the contentIntem is a workaround which removal can be
// tested with newer qt versions
contentItem: Rectangle {
anchors.fill: parent
color: "transparent"
ColumnLayout {
anchors.fill: parent anchors.fill: parent
spacing: 0 spacing: 0
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true
Layout.rightMargin: 15 Layout.rightMargin: 15
Layout.leftMargin: 20 Layout.leftMargin: 20
Layout.fillHeight: true
Layout.alignment: { Layout.alignment: {
if (menuAction.popupMode !== CallActionBar.ActionPopupMode.LayoutOption || TopMargin && BottomMargin) { if (menuAction.popupMode !== CallActionBar.ActionPopupMode.LayoutOption || TopMargin && BottomMargin) {
return Qt.AlignLeft | Qt.AlignVCenter; return Qt.AlignLeft | Qt.AlignVCenter;
...@@ -260,6 +268,7 @@ ItemDelegate { ...@@ -260,6 +268,7 @@ ItemDelegate {
} }
} }
} }
}
popup: Popup { popup: Popup {
id: itemPopup id: itemPopup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment