You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix issue where percentages were off of the border box, not padding box (facebook#41686)
Summary:
X-link: facebook/yoga#1485
Pull Request resolved: facebook#41686
The size of the containing block is the size of the padding box of the containing node for absolute nodes. We were looking at `containingNode->getLayout().measuredDimension(Dimension::Width)` which is the border box. So we need to subtract the border from this.
Added a test that was failing before this change as well
Differential Revision: https://www.internalfb.com/diff/D51330526?entry_point=27
fbshipit-source-id: fc595cd3f2d525e32b6ccea80d3c99b582d7b922
0 commit comments