Add bool config to YGConfig to configure using web defaults #445
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?
Historically Yoga has used other defaults then the web. Changing this now is not really an option as it would break all users of Yoga. However new products and frameworks using Yoga should not be effected by this if they would like to use the web defaults.
I suggest adding a
bool useWebDefaults
field to YGConfig.@emilsjolander Is there any discussion on why
useWebDefaults
should be used?@zcbenz
useWebDefaults
can be used if you need to port an existing html flexbox layout to Yoga. Without the need to watchout for places where the defaults differ from the web. You can even now (un)setuseWebDefaults
at a subtree level.