-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
After setting padding for the parent element, the absolute positioning of the child element is inaccurate #43206
Comments
|
|
Did the updated version fix this issue, or did it only occur in certain specific situations? I cannot reproduce it using this example now, but I did encounter this issue before going there |
Is this New Architecture specific? Have you tried on the Old Architecture? |
@cortinico I am certain that this problem is encountered on the new architecture. When I encounter it again, I will put the example up. I feel that it only appears under certain specific conditions |
Correct behavior is to treat containing block as padding box of parent, so adding padding should not change position of child. @joevilches is this in the list of things we fixed under strict layout conformance mode/Yoga without errata? Note that we likely would not be able to fix this issue more globally for existing components because it could break existing layouts. But we are building out conformance in the longer term, and plan to eventually expose the ability to control legacy vs conformant layout on subtree basis. |
@NickGerleman Yes this situation is covered in those list of things, specifically in #41684. Although the fix in there was more about the priority of insets in the case both |
Closing as we cannot reproduce + for the reasons mentioned by @joevilches. If you can consistently reproduce, please open a new issue. Plus ideally try on the latest stable (0.73) as it would help us investigate/fix |
Description
The child element is set to left: 0 and is positioned within the padding, which does not match the actual performance
Steps to reproduce
React Native Version
0.71
Affected Platforms
Runtime - Android, Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
no
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: