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

Clamp ruler marker resize offset line position #6700

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Dec 5, 2024

Problem:

While resizing via the ruler markers the offset line should not be allowed to go past the grid container bounds.

Fix:

Clamp the top and left props of the line based on the container.

Fixes #6699

Copy link
Contributor

github-actions bot commented Dec 5, 2024

Try me

Copy link

relativeci bot commented Dec 5, 2024

#15366 Bundle Size — 58.2MiB (~+0.01%).

59f6be0(current) vs d1d46c1 master#15361(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#15366
     Baseline
#15361
Regression  Initial JS 41.17MiB(~+0.01%) 41.17MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.24% 14.21%
No change  Chunks 20 20
No change  Assets 22 22
No change  Modules 4189 4189
No change  Duplicate Modules 213 213
No change  Duplicate Code 27.24% 27.24%
No change  Packages 477 477
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#15366
     Baseline
#15361
Regression  JS 58.19MiB (~+0.01%) 58.19MiB
Improvement  HTML 9.4KiB (-0.21%) 9.42KiB

Bundle analysis reportBranch fix/resize-offset-line-boundsProject dashboard


Generated by RelativeCIDocumentationReport issue

@ruggi ruggi merged commit 2a4e2c0 into master Dec 5, 2024
16 checks passed
@ruggi ruggi deleted the fix/resize-offset-line-bounds branch December 5, 2024 15:05
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**

While resizing via the ruler markers the offset line should not be
allowed to go past the grid container bounds.

**Fix:**

Clamp the `top` and `left` props of the line based on the container.

Fixes #6699
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.

clamp position for ruler maeker resize offset line
3 participants