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

Document editor screen jumping full fix #4850

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

toad
Copy link

@toad toad commented Jan 27, 2025

This fixes the jumping bug for me (bug 3054: ONLYOFFICE/DocumentServer#3054 ) and is an extension on #4848 .

Note that this includes the patch from @amovsisyan. You will need them to sign the CLA as well as me. Unfortunately they changed the email address they commit with.

@CLAassistant
Copy link

CLAassistant commented Jan 27, 2025

CLA assistant check
All committers have signed the CLA.

@toad toad marked this pull request as draft January 27, 2025 00:35
@toad toad force-pushed the document-editor-screen-jumping-full-fix branch from c36094c to 95844f6 Compare January 27, 2025 10:28
@toad toad force-pushed the document-editor-screen-jumping-full-fix branch from 95844f6 to 259baf3 Compare January 27, 2025 10:49
amovsisyan's patch looks for an anchor to save the position relative to.
Which works fine as long as there are anchors on every page.
Unfortunately with tables this often is not the case.

If GetDocumentPositionByXY() returns an anchor on a previous, invisible
page, try moving down the current page 10 pixels at a time until we find
an anchor on this page. This is similar to what the code above does.

If that does not work either, we need to reference an anchor on a
previous page. Use ConvertCoordsToAnotherPage() to do this correctly.
@toad toad force-pushed the document-editor-screen-jumping-full-fix branch from 259baf3 to 13d5b75 Compare January 27, 2025 12:56
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.

2 participants