Skip to content
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

Snap on convert to absolute #4371

Merged
merged 6 commits into from
Oct 13, 2023
Merged

Conversation

bkrmendy
Copy link
Contributor

@bkrmendy bkrmendy commented Oct 13, 2023

Problem

Elements that use the convert to absolute and move strategy don't snap to their parent or siblings.

Fix

Remove the isLayoutedByFlowAndNotAbsolutePositioned from gatherParentAndSiblingTargets. Since gatherParentAndSiblingTargets is called from the strategy, we're already certain that we want to generate snap lines for those elements, so there's no need for gatherParentAndSiblingTargets to filter out some of them heuristically.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2023

Try me

@relativeci
Copy link

relativeci bot commented Oct 13, 2023

Job #8646: Bundle Size — 63.27MiB (~-0.01%).

586d2aa(current) vs 5957b21 master#8632(baseline)

Warning

Bundle contains 64 duplicate packages – View duplicate packages

Bundle metrics  Change 3 changes Improvement 2 improvements
                 Current
Job #8646
     Baseline
Job #8632
Improvement  Initial JS 35.56MiB(~-0.01%) 35.56MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.89% 19.53%
No change  Chunks 28 28
No change  Assets 32 32
No change  Modules 4014 4014
No change  Duplicate Modules 455 455
Improvement  Duplicate Code 31.35%(-0.03%) 31.36%
No change  Packages 409 409
No change  Duplicate Packages 64 64
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
Job #8646
     Baseline
Job #8632
Improvement  JS 63.26MiB (~-0.01%) 63.26MiB
Not changed  HTML 11.54KiB 11.54KiB

View job #8646 reportView fix/snap-on-convert-to-absolute branch activity

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2023

Performance test results:
(Chart1)
(Chart2)

@bkrmendy bkrmendy marked this pull request as ready for review October 13, 2023 14:12
@bkrmendy bkrmendy merged commit 3a8a3c1 into master Oct 13, 2023
12 checks passed
@bkrmendy bkrmendy deleted the fix/snap-on-convert-to-absolute branch October 13, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants