Skip to content

chore: follow up to horizontal layouts#9854

Open
nwidynski wants to merge 1 commit intoadobe:mainfrom
nwidynski:chore-layout-review
Open

chore: follow up to horizontal layouts#9854
nwidynski wants to merge 1 commit intoadobe:mainfrom
nwidynski:chore-layout-review

Conversation

@nwidynski
Copy link
Copy Markdown
Contributor

Reverts #9845
Implements review from #8533

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@github-actions github-actions bot added the RAC label Mar 27, 2026
let rowHeight = (this.rowHeight ?? this.estimatedRowHeight ?? DEFAULT_HEIGHT) + this.gap;
visibleRect[offsetProperty] = Math.floor(visibleRect[offsetProperty] / rowHeight) * rowHeight;
visibleRect[heightProperty] = Math.ceil(visibleRect[heightProperty] / rowHeight) * rowHeight;
rect = rect.copy();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got confused while skimming this, let's keep the copy as a new variable to make reading easier

Suggested change
rect = rect.copy();
let visibleRect = rect.copy();

I cannot spot a difference between this block of changes original and proposed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants