Failed to execute "setPosition": Unsupported unit 'auto' #750

Open
opened 2018-04-11 13:57:14 -07:00 by aputinski · 0 comments
aputinski commented 2018-04-11 13:57:14 -07:00 (Migrated from github.com)

Report

Issues and Steps to Reproduce

There is no way to unset position (in the JavaScript version 1.9.3) because setPositionAuto 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') or setPositionAuto(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.

# Report - [x] I have searched [existing issues](https://github.com/facebook/yoga/issues) and this is not a duplicate # Issues and Steps to Reproduce There is no way to unset position (in the JavaScript version `1.9.3`) because `setPositionAuto` 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')` or `setPositionAuto(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](https://jsfiddle.net/emilsjolander/jckmwztt/) to post a web repro.***
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#750
No description provided.