Skip to content
New issue

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

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

Already on GitHub? # to your account

Item with flex_grow not visible #303

Closed
1 task done
bashtian opened this issue Jun 14, 2017 · 1 comment
Closed
1 task done

Item with flex_grow not visible #303

bashtian opened this issue Jun 14, 2017 · 1 comment
Labels
Milestone

Comments

@bashtian
Copy link

Issues and steps to reproduce

Third item is not visible if first item is set to GONE

<com.google.android.flexbox.FlexboxLayout
    android:id="@+id/flexbox_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:flexWrap="wrap"
    tools:showIn="@layout/activity_main">

    <TextView
        android:id="@+id/textview1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="1"
        android:visibility="gone"
        app:layout_flexGrow="1.0"
        app:layout_wrapBefore="true"
        />

    <TextView
        android:id="@+id/textview2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="2"
        app:layout_flexGrow="1.0"
        app:layout_wrapBefore="true"
        />

    <TextView
        android:id="@+id/textview3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="3"
        app:layout_flexGrow="1.0"
        app:layout_wrapBefore="true"
        />

</com.google.android.flexbox.FlexboxLayout>

Expected behavior

Third item should be visible. Seems to be a similar problem as in #283

Version of the flexbox library

f93faf9

@thagikura
Copy link
Contributor

Thanks! It's really a nice catch. Should be fixed by #304

@thagikura thagikura added this to the 0.3.0-alpha4 milestone Jun 15, 2017
@thagikura thagikura added the bug label Jun 15, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants