fix(StatusInput): add implicitHeight

It makes it work with layouts correctly.
This commit is contained in:
Patryk Osmaczko 2022-03-27 23:01:52 +02:00 committed by osmaczko
parent a1835164d9
commit b565a32c7e
1 changed files with 16 additions and 13 deletions

View File

@ -33,7 +33,7 @@ import StatusQ.Controls.Validators 0.1
Item { Item {
id: root id: root
implicitWidth: 480 implicitWidth: 480
height: (label.visible ? implicitHeight: (label.visible ?
label.anchors.topMargin + label.anchors.topMargin +
label.height : label.height :
charLimitLabel.visible ? charLimitLabel.visible ?
@ -47,6 +47,9 @@ Item {
errorMessage.height : errorMessage.height :
0) + 8 0) + 8
height: implicitHeight
width: implicitWidth
property alias input: statusBaseInput property alias input: statusBaseInput
property alias valid: statusBaseInput.valid property alias valid: statusBaseInput.valid
property alias pending: statusBaseInput.pending property alias pending: statusBaseInput.pending