Skip to content

Expose getters and setters for some new properties#192

Merged
emilsjolander merged 1 commit into
react:masterfrom
rigdern:rigdern/expose-props
Jun 2, 2016
Merged

Expose getters and setters for some new properties#192
emilsjolander merged 1 commit into
react:masterfrom
rigdern:rigdern/expose-props

Conversation

@rigdern

@rigdern rigdern commented Jun 1, 2016

Copy link
Copy Markdown

PR #185 added support for some new properties. We forgot to include getters/setters for these properties in some of the languages. This PR fixes that.

The properties include overflow and min/max height/width.

The properties include overflow and min/max height/width.
@vjeux

vjeux commented Jun 1, 2016

Copy link
Copy Markdown
Contributor

Is min/max actually spec compliant? If yes, this would be huge! A lot of people have been waiting for that.

@rigdern

rigdern commented Jun 1, 2016

Copy link
Copy Markdown
Author

@vjeux it is not fully spec compliant. When resolving min/max sizes, section 9.7.4 of the spec calls for n passes whereas this only does 2 passes. The 2 pass approach was borrowed from code that was in css-layout prior to PR #185.

I'm not familiar with how well the min/max implementation worked prior to PR #185. However, the current implementation has worked very well for our app.

@emilsjolander

Copy link
Copy Markdown
Contributor

Thank you!

@emilsjolander emilsjolander merged commit bd92550 into react:master Jun 2, 2016
ghost pushed a commit to react/react-native that referenced this pull request Jun 13, 2016
Summary:
Import latest master from css-layout.

This includes the following pull requests:
react/yoga#192
react/yoga#193
react/yoga#195
react/yoga#196

Reviewed By: javache

Differential Revision: D3411535

fbshipit-source-id: 95bee9bd0282f98f6fafa15335b910b644395ad3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants