fix(StatusModal): don't reserve header subtitle space

Closes #378
This commit is contained in:
Pascal Precht 2021-09-07 11:42:19 +02:00 committed by Michał Cieślak
parent 40001ef7a9
commit dc96cf04a9
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,11 @@ Column {
onClicked: simpleModal.open()
}
StatusButton {
text: "Simple title modal"
onClicked: simpleTitleModal.open()
}
StatusButton {
text: "Modal with header image"
onClicked: headerImageModal.open()
@ -65,6 +70,12 @@ Column {
header.subTitle: "Subtitle"
}
StatusModal {
id: simpleTitleModal
anchors.centerIn: parent
header.title: "Some Title"
}
StatusModal {
id: headerImageModal
anchors.centerIn: parent

View File

@ -119,6 +119,7 @@ Row {
color:Theme.palette.baseColor1
width: parent.width
elide: statusImageWithTitle.subTitleElide
visible: !!statusImageWithTitle.subTitle
}
}
}