google / flexbox-layout

Flexbox for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getMeasuredHeight returns bad value

alonrz opened this issue · comments

Using version 1.1.0

Attempting to measure with:

width = MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.AT_MOST);
height = MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
flexbox.measure(width, height);
return flexbox.getMeasuredHeight()

It will return the same height weather the row wraps to 2 rows or not.
Is there any value that states if the row is wrapping and to how many for manual calculations?