Align the buttons at the bottom of the panel

Contributes to CURA-5941.
This commit is contained in:
Diego Prado Gesto 2018-11-29 15:54:02 +01:00
parent f67c725b2a
commit bc8bf87809
2 changed files with 45 additions and 29 deletions

View file

@ -163,6 +163,7 @@ Item
onExited: background.color = headerBackgroundColor
}
}
DropShadow
{
id: shadow
@ -182,7 +183,7 @@ Item
id: popup
// Ensure that the popup is located directly below the headerItem
y: headerItemLoader.height + 2 * background.padding + base.shadowOffset + popupSpacingY
y: background.height + base.shadowOffset + popupSpacingY
// Make the popup aligned with the rest, using the property popupAlignment to decide whether is right or left.
// In case of right alignment, the 3x padding is due to left, right and padding between the button & text.