Bug Hunting Session
Bug 90468 - WRITER: Switching status bar view modes between Single, Multiple-page, or Book View is not positioning canvas to active text cursor when redrawn
Summary: WRITER: Switching status bar view modes between Single, Multiple-page, or Boo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
: 122610 (view as bug list)
Depends on:
Blocks: OLE-Object-Edit-Transition
  Show dependency treegraph
 
Reported: 2015-04-05 17:58 UTC by Daniel
Modified: 2019-01-09 20:29 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
1st Attachment, 2 pages view (228.11 KB, image/png)
2015-04-05 17:58 UTC, Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2015-04-05 17:58:57 UTC
Created attachment 114635 [details]
1st Attachment, 2 pages view

Hi everyone, this is the problem, I have a large monitor full HD 1920x1080, and I'm abble to watch 2 pages at the same time is very nice as you can see on the first attachment. The thing is when I want to insert a formula the window changes from 2 pages view to one page view, of course I know this necessary beacuse the space required by the formula editor, but is really frustating that when it perform the switch then he takes you far away from the page what you are editing.

So I propose two solutions, first, keep the 2 pages view no matter what, maybe reducing the zoom automatically or maybe adding scrolls, or second, perform the switch but keep the focus on page you are editing.

I really hope you could read this, and take my advice. Thanks for your attention
Comment 1 V Stuart Foote 2015-04-06 18:51:01 UTC
@Daniel,

Thanks for posting. But don't believe this to be a bug, nor is it a valid enhancement.

To explain, what happens when you enter formula mode in Writer (Insert -> Object -> Formula) is that the Math module is being launched and the document view changes into that module. And when formula editing is complete, the Writer session toggles back to the mode it had prior to inserting or opening for editing the formula. 

On return to the Writer session, the text cursor should be located adjacent to the formula just entered/edited. If it were not, that would be a bug. but I just verified it is correctly positioned on return with 4.4.1.2 and current builds of master.

This is by design of both Writer and the Math formula editor modules, and functions as intended. Displaying multiple-pages in the formula editor would not be especially helpful given its specialized role in preparing ODF documents. 

As an aside, through 4.4 releases, the "Two page" view in Writer is misnamed, it is actually a multiple page view, with page display and scrolling dependent on zoom level. That naming has been corrected for the current master and the future 5.0 release. Also, for the future releases the single page view will now be the default view when opening a document in Writer. Until then, change your view to single page and zoom in, that will eliminate the displacement following placement of a formula.
Comment 2 Daniel 2015-04-07 01:26:01 UTC
Hi, thanks for your time, and sorry for my english, I just didn't know to call that function.

So, to be clear, in multiple
Comment 3 Daniel 2015-04-07 01:36:03 UTC
Sorry again, mistake placing comment above.

I have changed the title since I notice is not a problem with formula editor, it happens when you switch between the multiple page display to single page display mode. Editor takes you far away from you're editing and take you back when switch it again, I'm using the last still version and I'm always updating the suite.

So, using multiple display, and then open formula editor, the display mode is switched to single page view and lose the focus where you're editing, same as just switching between displays modes.

I don't understand how this can be an intended feature.
Comment 4 V Stuart Foote 2015-04-07 04:17:45 UTC
(In reply to Daniel from comment #3)
> 
> So, using multiple display, and then open formula editor, the display mode
> is switched to single page view and lose the focus where you're editing,
> same as just switching between displays modes.
> 

Hmm, I guess we can make a case that the canvas redraw when toggling between the three view-modes does not advance the page view to the position of the active cursor. So that aspect is a valid bug.

Otherwise the active cursor location is correctly maintained between the changes in view, as well as on return from the OLE formula editor. 

Steps to reproduce:

1. create a new Writer document

2. fill full page with sample text

3. copy text and paste several times to create a multiple page document

4. choose a position mid-document and enter some additional text (or you coluld insert a Math formula OLE as in OP)

5. note that text cursor position

6. toggle the view-mode from two page view (aka multiple-page view in master) to either book view or single-page view

7. the document will reflow its view to the selected layout, but note that the position of the active text cursor is not preferentially centered, and can be completely off screen 

8. use a cursor key movement and verify the position of the text cursor did not change during reflow,  with the cursor movment the document recenters a page to that location

Expected:  that a reflow of the pages into the new view should honor the position of the text cursor, positioning the canvas--as scaled--at the cursor text, should not require an addition cursor movement to reposition the document canvas at the text cursor.
Comment 5 V Stuart Foote 2015-04-07 04:26:59 UTC
Just verified this has been the behavior for the duration, present in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 6 tommy27 2016-04-16 07:24:11 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2017-05-22 13:24:51 UTC Comment hidden (obsolete)
Comment 8 mtks+3krr 2017-06-16 16:01:54 UTC
I can confirm this still exists and can be reproduced as V Stuart Foote describes. I'm not sure if it is a duplicate but it seems connected to Bug 40105 in which changing between "Web" and "Normal" views likewise produces a change in the document focus. The expected behavior is that any change in view remains anchored to the location of the cursor or some part of the document that is visible at time of view change.

Debian Testing x86_64 4.9.30-1 
LO Version: 5.2.7.2, Build ID: 1:5.2.7-1
Comment 9 Cor Nouws 2019-01-09 20:29:11 UTC
*** Bug 122610 has been marked as a duplicate of this bug. ***