Failed to execute "setPosition": Unsupported unit 'auto' #750
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
There is no way to unset position (in the JavaScript version
1.9.3
) becausesetPositionAuto
is not a function even though it is being patched to support 'auto' as a value:https://github.com/facebook/yoga/blob/master/javascript/sources/entry-common.js#L242
Expected Behavior
I expect to be able to call
setPosition(EDGE_TOP, 'auto')
orsetPositionAuto(EDGE_TOP)
Actual Behavior
Error:
Failed to execute "setPosition": Unsupported unit 'auto'
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.