Page 1 of 1

Screen skips when I click save?

Posted: Sun Mar 12, 2023 3:43 am
by yohejohn
Hello,

I brought this up in the forums a few years ago, but still happens:

When I'm editing/revising in a LibreOffice word document (version 7.0.4.2 now) and I leave the cursor on one page while continuing reading and scrolling down, if I decided to 'save' the document, the screen zooms back up to where cursor is. Not the end of the world, but distracting, since I have to then scroll down and find where I was.

Any possibility of a fix on this? Or...what is the reason that LibreOffice (and, I assume, OpenOffice) does this?

Thanks,

John
 Edit: Courtesy links:
Pages/view jerks suddenly when I click Save      Your post from July 2021
Bug 41063 - Saving/Autosaving (Save/Autosave) while in table causes view to jump to cursor position  
Bug 135244 - Document (still) scrolling to cursor position on different occurrences
-- MrProgrammer, forum moderator  

Re: Screen skips when I click save?

Posted: Sun Mar 12, 2023 4:22 am
by FJCC
I just tested this in OpenOffice and the page does not jump to the cursor upon saving. I tested on a Windows 10 system.

Re: Screen skips when I click save?

Posted: Sun Mar 12, 2023 2:02 pm
by Hagar Delest
Try to upgrade. Tested with LO 7.4 on my xubuntu machine and no problem. I use the same version on my Windows 10 machine and I don't recall that behavior.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the 🖉 button if your issue has been fixed.

Re: Screen skips when I click save?

Posted: Sun Mar 12, 2023 2:48 pm
by John_Ha
Probably related to the current bug in LO where the cursor position is lost on save.

Re: Screen skips when I click save?

Posted: Sun Mar 12, 2023 3:11 pm
by Hagar Delest
John_Ha wrote: Sun Mar 12, 2023 2:48 pm Probably related to the current bug in LO where the cursor position is lost on save.
I don't think it's related.

Note that I just made a quick test with LO 7.4.4.2 on my xubuntu machine: I put the cursor on a page, then scrolled on another page. Save, close LO, relaunch LO and load the file. The last viewed page was displayed. If i hit the cursor arrows key, then LO jumps to the last position cursor position, with the effect of the arrow key.

Which means there could be a "double" feature: save the last viewed position and the last edited position. The former being displayed by default and the latter being displayed when an edit has to be done (through the keyboard).

Re: Screen skips when I click save?

Posted: Mon Mar 13, 2023 11:34 am
by cwolan
Hagar Delest wrote: Sun Mar 12, 2023 3:11 pm Which means there could be a "double" feature: save the last viewed position and the last edited position. The former being displayed by default and the latter being displayed when an edit has to be done (through the keyboard).
Are you referring to the attributes stored in the internal settings.xml file?
They are: ViewLeft, ViewTop and VisibleLeft, VisibleTop, VisibleRight, VisibleBottom.

Re: Screen skips when I click save?

Posted: Mon Mar 13, 2023 3:01 pm
by Hagar Delest
I was only aware of ViewLeft and ViewTop from ODT's settings.xml, that were for the cursor position.
Meaning that there is also VisibleLeft and VisibleTop, for the last viewed position?

Re: Screen skips when I click save?

Posted: Mon Mar 13, 2023 9:26 pm
by cwolan
That's my opinion after looking at the source code.
See for yourself, the source file: /core/sw/source/uibase/uiview/view.cxx
methods: WriteUserData, ReadUserData, ReadUserDataSequence and WriteUserDataSequence

Re: Screen skips when I click save?

Posted: Mon Mar 13, 2023 10:03 pm
by Hagar Delest
Way above my skills. I'm no coder at all. Macros (in a limited way) are the closest to code that I can achieve.