Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that onBoundsDefined width and height is >= 0
Summary: It's theoretically possible that in onBoundsDefined case we would end up using a negative width/height. It could happen when `layoutResult.width` or `layoutResult.height` is less than the sum of paddings and borders. This diff ensures that the computed content width and height will always be >= 0. Reviewed By: pentiumao Differential Revision: D58867365 fbshipit-source-id: c306cf1027c95e01b01af2c78276d40bea53f499
- Loading branch information