Bug 40105 - VIEWING: Switching of view layouts causes change of viewing position of document
Summary: VIEWING: Switching of view layouts causes change of viewing position of document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
3.5.0 Beta2
Hardware: x86 (IA32) Windows (All)
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: Writer-View-Jumps
  Show dependency treegraph
Reported: 2011-08-15 08:29 UTC by Ihar Filipau
Modified: 2023-01-17 03:19 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description Ihar Filipau 2011-08-15 08:29:08 UTC
Two things:

- Switching from "Print layout" to "Web layout" causes document to scroll to top. That is the worst part.

- Switcing from "Web layout" to "Print layout" scrolls document some paragraphs backwards.

In R/W mode, pressing Up/Down keys sends the view back - cursor position is OK, it's just the view which is scrolled elsewhere after the switch.

In R/O mode, pressing Up/Down doesn't help, as they work as scroll up/scroll down, they do not control cursor position.

Rather annoying, when one tries to quickly verify how the just typed place in document looks in "Page layout".
Comment 1 Ihar Filipau 2011-08-16 07:50:58 UTC
Oh. Forgot the usual "expected behavior."

Expected behavior.

When switching document viewing layout, in R/O mode, LO should anchor the view to the first visible line (or character).

When switching document viewing layout, in R/W mode, LO should attempt to maintain the vertical distance from the cursor to the top of the frame. If cursor is off-screen, then behavior similar to R/O mode is desired. Cursor position shouldn't be affected (as it is now) by the switch.

wbr, thanks in advance.
Comment 2 Jeffrey 2011-08-16 19:30:55 UTC
Failed to reproduce on LibreOffice 3.4  340m1(Build:103) for OpenSuse Linux. Opened a text document with several paragraphs, switched between Print and Web layout without any major jumps.
Comment 3 Ihar Filipau 2011-08-17 02:43:59 UTC
If that has any influence: I'm using the version from PortableApps (I do not have permissions to install software on office PC.)

I have just retested with freshly released portable v3.4.2, and the issue persists.

I have tested LoWriter with both documents converted from WinWord's rtf and native odt document. Just to exclude side-effects of the conversion.

Can anybody test it with properly installed LO on Windows?

Might lack of JRE installed have any influence on the issue? (I do have JRE - but the version 1.5, which is still the standard in my company. Forums say that LO requires newer Java 6.)

Extra info. OS is WinXP SP3 32bit, M$Office 2007 is installed too.
Comment 4 Ihar Filipau 2011-08-18 14:36:32 UTC
Windows 7, 64-bit, LibreOffice 3.4.2, OOO340m1 (Build:203) (properly installed, not portable edition) - same behavior as in open note. (This is at home. Again, Java isn't installed. If that matters.)

Ubuntu 11.04, 64-bit, LibreOffice 3.3.3, OOO330m19 (Build:301), "tag libreoffice-, Ubuntu package 1:3.3.3-1ubuntu2" - same behavior as in open note. (This is default, not heavily customized Ubuntu installation.)

How I reproduce the problem:
1. In Writer, press ^N to open a new document. By default it shows the new document in "Print layout".
2. Using copy-paste, fill 4+ pages with test text (e.g. "Test").
3. On 3rd page, mark one line with some unique text (e.g. "Test 123456") and leave cursor at the line.
4. Select from "View" menu the "Web layout".

Result: First page is shown.

Expected: The unique string is still on screen after switch.
Comment 5 Björn Michaelsen 2011-12-23 12:31:44 UTC Comment hidden (obsolete)
Comment 6 Ihar Filipau 2011-12-24 05:56:44 UTC
3.5.0b2, Windows x86, the issue is still present.

Changing status to NEW as per the spambot instructions.

P.S. Here I found it: I had x64 version installed on my W7 system. "About" window doesn't tell the bit-ness of the version used. Will file a separate ticket to that.
Comment 7 A (Andy) 2013-04-27 14:06:27 UTC
the first part (scroll to top) is for me reproducible with LO (Win7 Home, 64bit), but the second one not
Comment 8 Norbert X 2014-05-30 21:28:51 UTC
Confirmed on Version:
Build ID: 420m0(Build:2) on Ubuntu 12.04.4.

It is unbelievable for enterprise grade LibO - very old MSO 2003 does not loose focus on changing of view, but LibO does. Are you kidding? 

Please fix this bug as soon as possible.
Comment 9 Joel Madero 2014-05-30 22:52:37 UTC
Please don't place on MAB list without knowing procedures. Removing
Comment 10 Norbert X 2014-11-21 20:06:03 UTC
Bug exists in 
Build ID: 9af3d21234aa89dac653c0bd76648188cdeb683e
Locale: en_US
Comment 11 Norbert X 2015-08-05 15:31:32 UTC
Bug exists in LibreOffice 5.0 (Ubuntu 12.04.5 with PPA, 1:5.0.0~rc5-0ubuntu1~precise1).
Comment 12 QA Administrators 2016-09-20 10:20:38 UTC Comment hidden (obsolete)
Comment 13 mtks+3krr 2017-06-16 15:39:32 UTC
On Debian Testing (Stretch) w/ LO, I can confirm this bug still exists. It is unchanged from the OP's description.
Comment 14 Norbert X 2017-09-01 17:02:49 UTC
Bug exists in 

Build ID: 1:5.4.1~rc2-0ubuntu0.16.04.1~lo0
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group

Ubuntu 16.04 LTS with PPA.
Comment 15 QA Administrators 2018-10-09 02:52:12 UTC Comment hidden (obsolete)
Comment 16 Karsten 2019-01-16 11:14:58 UTC
A general discussion is needed: https://bugs.documentfoundation.org/show_bug.cgi?id=122730
Comment 17 QA Administrators 2021-01-16 04:17:05 UTC Comment hidden (obsolete)
Comment 18 QA Administrators 2023-01-17 03:19:56 UTC
Dear Ihar Filipau,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team