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

calc: update viewedRectangle on status message #10651

Closed
wants to merge 1 commit into from

Conversation

JaumePujantell
Copy link

viewedRectangle was not properly being updated when new document sizes
were received via status message. This sometimes caused the view to not
scroll properly when using arrow keys to select cells just after opening
a file.

Some test have been updated due to changed scrollbar sizes, since the
bar size depends on the document size.

Tried to add a cypress test but couldn't get the error to trigger on
cypress.

Signed-off-by: Jaume Pujantell [email protected]
Change-Id: I48058b0ac5df70ca14a0a7c32e1f9b697fa37f81

@eszkadev
Copy link
Contributor

please solve conflict and rebase to pass CI :)

@eszkadev eszkadev added the draft label Dec 11, 2024
@JaumePujantell JaumePujantell force-pushed the private/jaume/calc-viewedrectangle branch from ab860f8 to 829999f Compare December 19, 2024 11:55
@eszkadev
Copy link
Contributor

eszkadev commented Jan 2, 2025

cypress tests were updated :(
please rebase again (and try to retrigger builds if failed - then we can quickly review and merge), thanks in advance

@JaumePujantell JaumePujantell marked this pull request as draft January 2, 2025 11:32
@JaumePujantell JaumePujantell force-pushed the private/jaume/calc-viewedrectangle branch 2 times, most recently from ce49505 to 1286ea3 Compare January 8, 2025 15:27
@eszkadev
Copy link
Contributor

eszkadev commented Jan 9, 2025

hi @JaumePujantell , is that ready to review now?

@eszkadev
Copy link
Contributor

eszkadev commented Jan 9, 2025

Please rebase as I updated some related code and tests recently

viewedRectangle was not properly being updated when new document sizes
were received via status message. This sometimes caused the view to not
scroll properly when using arrow keys to select cells just after opening
a file.

Tried to add a cypress test but couldn't get the error to trigger on
cypress.

Some test have been updated due to changed scrollbar sizes, since the
bar size depends on the document size.

This change also broke 'Jump on search with not visible cursor' test.
Fixed by ensuring the cursor is followed on search.

Signed-off-by: Jaume Pujantell <[email protected]>
Change-Id: I48058b0ac5df70ca14a0a7c32e1f9b697fa37f81
@eszkadev eszkadev force-pushed the private/jaume/calc-viewedrectangle branch from 1286ea3 to b5a51a5 Compare January 9, 2025 07:45
@eszkadev
Copy link
Contributor

eszkadev commented Jan 9, 2025

I rebased

@eszkadev
Copy link
Contributor

eszkadev commented Jan 9, 2025

I moved rebased commit to other PR with related fixes: #10881

@JaumePujantell thanks I tested and see it works when we scroll to pos which wasn't visible -> full cell in cals is now visible

@eszkadev eszkadev closed this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants