-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
fix: absolute positioning doesn't ignore the padding of the parent element #986
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #986 +/- ##
==========================================
- Coverage 74.34% 74.34% -0.01%
==========================================
Files 214 214
Lines 24739 24742 +3
==========================================
+ Hits 18393 18395 +2
- Misses 6346 6347 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the root node when measuring it in torin.rs?
I'm not sure I understand correctly what the question is about. Do you mean absolute positioning of the root element itself or something else? |
Torin starts measuring from the root node by calling By root node I don't specifically refer to the root node of the app but to the root node from where the measuring starts, which could be different is the measure is incremental. |
Perhaps your way is not a good approach, if the 3 places where this function is called require some special logic maybe its better to move the logic inside or create a simple function to abstract it |
I don't agree with this, if an element is absolute I still think it should consider the parent's padding. I recently added the |
No description provided.