I would like to set the height of an element. It should be the height of the highest child element.
Is there something like:
Parent {
height: max(child1.height, child2.height)
}
Alternatively something like:
Parent {
height: stretchToChildren
}
Math.max()
is variadic (taking arbitrarily many arguments).
Depending on actual layout, it might be possible to use Item.childrenRect
property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With