-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Child panels with absolute position should not calculate parent padding with respect to width/height. #855
Comments
Is that this? |
Looks about right. I forgot but left/top/right/bottom are also affected. |
So say you want a bar at the bottom of your panel. You have to do negative bottom/left to account for padding, then you have to do some width bigger than the parent panel because you can’t get the actual width and then you have to hide overflow. Adding something like calc(100% + 16px) could be a help too. |
Fixed by this PR facebook/yoga#1028 |
What can't you do?
If you have a child panel that is position aboslute and width/height 100%, it will use the padding of the parent to calculate height/width when it should just be 100% the height/width of the parent.
How would you like it to work?
It should just be 100% the height/width of the parent. This is how it works in browsers.
The text was updated successfully, but these errors were encountered: