Fix width being ignored when has a value of 0 #134

Merged
vjeux merged 1 commits from fix_dim_0 into master 2015-09-25 14:43:52 -07:00
vjeux commented 2015-09-25 13:15:33 -07:00 (Migrated from github.com)

8f6a96adbc added a test in isDimDefined that checks if value > 0.0, but unfortunately, it did not faithfully port the JavaScript version which is value >= 0.0: https://github.com/facebook/css-layout/blob/master/src/Layout.js#L306. Sadly, no test covered this so it went unnoticed.

https://github.com/facebook/css-layout/commit/8f6a96adbcb2b0389f948b8113d8b7cb8991bb2d added a test in isDimDefined that checks if `value > 0.0`, but unfortunately, it did not faithfully port the JavaScript version which is `value >= 0.0`: https://github.com/facebook/css-layout/blob/master/src/Layout.js#L306. Sadly, no test covered this so it went unnoticed.
vjeux commented 2015-09-25 14:25:54 -07:00 (Migrated from github.com)

@facebook-github-bot import

@facebook-github-bot import
facebook-github-bot commented 2015-09-25 14:28:57 -07:00 (Migrated from github.com)

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/626460604160444/int_phab to review.

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/626460604160444/int_phab to review.
lucasr commented 2015-09-25 14:41:18 -07:00 (Migrated from github.com)

Looks good to me.

Looks good to me.
vjeux commented 2015-09-25 14:43:57 -07:00 (Migrated from github.com)

@facebook-github-bot shipit

@facebook-github-bot shipit
facebook-github-bot commented 2015-09-25 14:44:34 -07:00 (Migrated from github.com)

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/626460604160444/int_phab to review.

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/626460604160444/int_phab to review.
Sign in to join this conversation.
No description provided.