Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlexboxLayoutManager did not display all items with FlexWrap.WRAP and FlexDirection.COLUMN #450

Open
1 task done
liangtg opened this issue Jul 24, 2018 · 2 comments
Open
1 task done

Comments

@liangtg
Copy link

liangtg commented Jul 24, 2018

Issues and steps to reproduce

  • FlexboxLayoutManager did not display all items with FlexWrap.WRAP and FlexDirection.COLUMN
  • some item lost

this is main code

        FlexboxLayoutManager layoutManager = new FlexboxLayoutManager(this);
        layoutManager.setFlexWrap(FlexWrap.WRAP);
        layoutManager.setFlexDirection(FlexDirection.COLUMN);

Expected behavior

FlexboxLayoutManager should display all items

Version of the flexbox library

com.google.android:flexbox:1.0.0

Link to code

https://github.com/liangtg/flexbox-test

@geotinc
Copy link

geotinc commented Nov 21, 2018

Any news ? I have the same problem.
Only 16 items of my 26 items are displayed.

@liangtg
Copy link
Author

liangtg commented Nov 26, 2018

Any news ? I have the same problem.
Only 16 items of my 26 items are displayed.

@geotinc
this solved my problem:

    @Override
    public void onBindViewHolder(@NonNull AdapterViewHolder holder, int position) {
        FlexboxLayoutManager.LayoutParams lp = (FlexboxLayoutManager.LayoutParams) holder.itemView.getLayoutParams();
        lp.width = screenwidth;

sheckspir added a commit to sheckspir/flexbox-layout that referenced this issue Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants