flexbox-layout icon indicating copy to clipboard operation
flexbox-layout copied to clipboard

FlexboxLayoutManager + alignItems.BASELINE + wrap_content height results in overlapping

Open dlew opened this issue 6 years ago • 3 comments

Issues and steps to reproduce

  1. Create a FlexboxLayoutManager with alignItems = AlignItems.BASELINE`
  2. Use it on a RecyclerView that needs to wrap at least one line.
  3. Make the RecyclerView have height wrap_content instead of match_parent.

Expected behavior

I expected the items to wrap.

Instead, the last item ends up overlapping the previous ones.

screenshot-2017-12-07_11 17 03 629

Version of the flexbox library

0.3.1

Link to code

FlexBug.zip

dlew avatar Dec 07 '17 17:12 dlew

Hi @dlew, have you found solution for this issue?

hangnadi avatar Jun 17 '18 05:06 hangnadi

No, I simply decided not to go this route.

dlew avatar Jun 17 '18 10:06 dlew

No, I simply decided not to go this route.

@dlew you may try this:

https://github.com/google/flexbox-layout/issues/388#issuecomment-452631303

wangliangrc avatar Jan 09 '19 09:01 wangliangrc