Fix the invalid height in the following situation: (#140)
- flex direction is set to row (or row_reverse) - FlexboxLayout has a TextView (or other views that expand vertically if not enough space is left horizontally) - TextView's layout_width is set to 0dp, layout_height is set to wrap_content and layout_flexGrow is set to positive In the situation above, the initial height of the TextView is calculated as bigger than the actual height because at first the width is set to 0dp, so the TextView is trying to expand vertically, but actually the height needs to be measured again with the expanded width (by setting the layout_flexGrow attribute)
Showing
想要评论请 注册 或 登录