YogaLayout inside VirtualYogaLayout has not size #1244
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Report
Issues and Steps to Reproduce
Replaces this with steps to repro your issue.
<?xml version="1.0" encoding="utf-8"?>`
<com.facebook.yoga.android.YogaLayout xmlns:android="http://schemas.android.com/apk/res/android"



xmlns:yoga="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
yoga:yg_width="100%"
yoga:yg_height="100%"
yoga:yg_alignItems="center"
android:id="@+id/fl_child_frg"
>
<com.facebook.yoga.android.VirtualYogaLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/flv_child_frg"
yoga:yg_flexDirection="column"
>
<com.facebook.yoga.android.YogaLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/fl_child_tmp"
>
</com.facebook.yoga.android.YogaLayout>
</com.facebook.yoga.android.VirtualYogaLayout>
</com.facebook.yoga.android.YogaLayout>
`
i have xml like above, a VirtualYogaLayout with a textView and a yogalayout(which has a textview in it),but as i run it, we can only see one textview
it seems any yogaLayout inculding its children has not size when used in VirtualYogaLayout.
Expected Behavior
Describe what you expected would happen.
Actual Behavior
Describe what actually happened.
Link to Code
If you have some code that maintainers can clone/test for themselves, bugs can be resolved much faster. Please paste a link here.
When applicable, use this fiddle to post a web repro.
We're deprecating the
com.facebook.yoga.android.YogaLayout
ViewGroup in the next major release of Yoga. We intend to still push out a new version aligned to the core Yoga 2.0. I have bulk closed ViewGroup issues to reflect that we are not planning to invest time into functional changes of the ViewGroup. and eventually intend to remove it from the repo.