Skip to content

Conversation

@yihuang
Copy link
Contributor

@yihuang yihuang commented May 15, 2017

1, Change bottom to be based� on height of parent.
2, Respect margin value when layout with right/bottom.

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions.

@woehrl01
Copy link
Contributor

woehrl01 commented May 15, 2017

@yihuang It would be great if you could add a test for this change. You simply have to add a html layout inside the fixture folder and run gentest.rb.

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@yihuang
Copy link
Contributor Author

yihuang commented May 16, 2017

@woehrl01 When I run ruby gentest.rb, i got error, i'm running with ruby 2.4.1:

/usr/local/lib/ruby/gems/2.4.0/gems/watir-webdriver-0.9.9/lib/watir-webdriver/elements/table_cell.rb:3:in `alias_method': undefined method `col_span' for class `Watir::TableCell' (NameError)
	from /usr/local/lib/ruby/gems/2.4.0/gems/watir-webdriver-0.9.9/lib/watir-webdriver/elements/table_cell.rb:3:in `<class:TableCell>'
	from /usr/local/lib/ruby/gems/2.4.0/gems/watir-webdriver-0.9.9/lib/watir-webdriver/elements/table_cell.rb:2:in `<module:Watir>'
	from /usr/local/lib/ruby/gems/2.4.0/gems/watir-webdriver-0.9.9/lib/watir-webdriver/elements/table_cell.rb:1:in `<top (required)>'
	from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/lib/ruby/gems/2.4.0/gems/watir-webdriver-0.9.9/lib/watir-webdriver.rb:119:in `<top (required)>'
	from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'
	from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
	from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
	from gentest.rb:3:in `<main>'

@woehrl01
Copy link
Contributor

@yihuang looks like an incompatibility with ruby 2.4.*. see watir/watir#508. I use ruby 2.2.1 locally. Maybe @emilsjolander know more about this?

@emilsjolander
Copy link
Contributor

Looks line the issue is closed. Maybe we can just upgrade our watir dep?

@emilsjolander
Copy link
Contributor

@yihuang Try running with ruby 2.2. I agree with @woehrl01 we want a test to ensure we don't regress this in the future.

@yihuang yihuang force-pushed the fix_absolute_layout branch from a4ec2ad to c50954a Compare May 18, 2017 01:46
@yihuang
Copy link
Contributor Author

yihuang commented May 18, 2017

@woehrl01 tests has been added.

@yihuang yihuang force-pushed the fix_absolute_layout branch from c50954a to b8afcd5 Compare May 18, 2017 01:48
@woehrl01
Copy link
Contributor

woehrl01 commented May 21, 2017

Thank you @yihuang!
As travis fails I verified the tests locally, looks good to me @emilsjolander.

@facebook-github-bot
Copy link
Contributor

@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request May 22, 2017
Summary:
1, Change bottom to be based� on height of parent.
2, Respect margin value when layout with right/bottom.
Closes facebook/yoga#552

Differential Revision: D5102090

Pulled By: emilsjolander

fbshipit-source-id: dca291413ffc2027d7628f4c8b8eeeb0b4823bc2
facebook-github-bot pushed a commit to facebook/litho that referenced this pull request May 22, 2017
Summary:
1, Change bottom to be based� on height of parent.
2, Respect margin value when layout with right/bottom.
Closes facebook/yoga#552

Differential Revision: D5102090

Pulled By: emilsjolander

fbshipit-source-id: dca291413ffc2027d7628f4c8b8eeeb0b4823bc2
vincentriemer pushed a commit to vincentriemer/yoga-dom that referenced this pull request May 9, 2018
Summary:
1, Change bottom to be based� on height of parent.
2, Respect margin value when layout with right/bottom.
Closes facebook/yoga#552

Differential Revision: D5102090

Pulled By: emilsjolander

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants