fix(StatusInput): add implicitHeight
It makes it work with layouts correctly.
This commit is contained in:
parent
c6b2a02e0a
commit
a0246f6a7c
|
@ -33,19 +33,22 @@ 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 ?
|
||||||
charLimitLabel.anchors.topMargin +
|
charLimitLabel.anchors.topMargin +
|
||||||
charLimitLabel.height :
|
charLimitLabel.height :
|
||||||
0) +
|
0) +
|
||||||
statusBaseInput.anchors.topMargin +
|
statusBaseInput.anchors.topMargin +
|
||||||
statusBaseInput.height +
|
statusBaseInput.height +
|
||||||
(errorMessage.visible ?
|
(errorMessage.visible ?
|
||||||
errorMessage.anchors.topMargin +
|
errorMessage.anchors.topMargin +
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue