Fix absolute position when padding on parent in place #1016

Open
woehrl01 wants to merge 2 commits from woehrl01/fix-absolute-with-padding into main
woehrl01 commented 2020-06-11 08:50:46 -07:00 (Migrated from github.com)

This PR fixes #850 where the padding of the parent is used mistakenly included for the calculation of children's size.

It also fixes the bug where the boarder of the parent is used, instead of the padding for positioning.

This PR fixes #850 where the padding of the parent is used mistakenly included for the calculation of children's size. It also fixes the bug where the boarder of the parent is used, instead of the padding for positioning.
This pull request has changes conflicting with the target branch.
  • gentest/fixtures/YGAbsolutePositionTest.html
  • tests/YGAbsolutePositionTest.cpp
  • yoga/Yoga.cpp
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin woehrl01/fix-absolute-with-padding:woehrl01/fix-absolute-with-padding
git checkout woehrl01/fix-absolute-with-padding
Sign in to join this conversation.
No description provided.