Skip to content

Fix scroll_to_row not taking the header into account#44

Merged
emilk merged 3 commits intomainfrom
antoine/fix-scroll
Feb 19, 2026
Merged

Fix scroll_to_row not taking the header into account#44
emilk merged 3 commits intomainfrom
antoine/fix-scroll

Conversation

@abey79
Copy link
Member

@abey79 abey79 commented Feb 19, 2026

Title.

Also update the demo to test/verify scrolling to specific rows/columns.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the scroll_to_row functionality was not properly accounting for the sticky header, causing rows to be scrolled to positions that were hidden behind the header. The fix simplifies the scrolling logic and ensures scrolled content appears visible below the sticky regions.

Changes:

  • Simplified the x_from_column_nr and y_from_row_nr closures by removing incorrect conditional logic
  • Fixed a typo ("sitcky" → "sticky")
  • Moved sticky size adjustment from inside the coordinate calculation closures to directly subtract from the target rectangle bounds, ensuring scrolled content is positioned to be visible below/after sticky headers/columns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abey79 abey79 marked this pull request as ready for review February 19, 2026 11:23
@emilk emilk added the bug Something isn't working label Feb 19, 2026
@emilk emilk merged commit dfd09c7 into main Feb 19, 2026
10 checks passed
@emilk emilk deleted the antoine/fix-scroll branch February 19, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working include in changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments