Hi, I’m trying to resize a column flex container height based on its contents.
For a Column repeater container I managed a binding on the height property:
len({this.props.instances}) * ({this.props.elementPosition.basis} + 1) + 'px'
This is still not ideal, because the property {this.props.elementPosition.basis}
still has to be set manually, I couldn’t find a way to bind it to the height of the view of the real element that is repeated.
In a column flex container I have the opposite problem. The elements can resize their view to the original height with the property useDefaultViewHeight
. However, for this to work the property {position.basis}
has to be left blank, so I cannot set the column height to the sum of its elements height.
Is there a property that can be added to get the column contents height or something similar and bind it to the parent view height?