Bug 106435 - VIEWING: Jump of document canvas view to the top of the comment disrupts editing of long comments
Summary: VIEWING: Jump of document canvas view to the top of the comment disrupts edit...
Status: RESOLVED DUPLICATE of bug 91519
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-08 12:34 UTC by Thomas Lendo
Modified: 2017-03-26 11:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example text document with one long and some smaller comments (22.04 KB, application/vnd.oasis.opendocument.text)
2017-03-08 12:40 UTC, Thomas Lendo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Lendo 2017-03-08 12:34:23 UTC
In Writer, the document canvas view jumps up to the top of the comment (or a hand's width above the comment if the comment box is not high) if the top of the comment box, you want to edit, is out of the actual document canvas view.

This may be a reasonable solution for comments that are only a few lines long.
But it disrupts the editing of long comments e.g. if the comment box is higher than the height of the document canvas view.

Steps to reproduce:

1. Create a new Writer document.
2. Create a comment. It should be visible on the right of the document's page.
3. Fill the comment with text until the comment box is longer than the document canvas view height.
4. Scroll down so that you can see the bottom of the comment box but not the top of it.
5. Click into the comment or (if the cursor is already in the comment) type or delete something.

Actual result:

The document canvas view jumps up to the top of the comment. As a result, the cursor or your edit will be out of sight. You can't see the result of what you have done and for EVERY further edit you have to scroll back manually.

Expected result:

If the comment box is longer than the document canvas view, Writer should not jump to the top of the comment you are editing. At least the canvas view should only jump as far as the cursor position is visible to the user.
Comment 1 Thomas Lendo 2017-03-08 12:40:57 UTC
Created attachment 131752 [details]
Example text document with one long and some smaller comments

Test file with a long comment at the first page to show the bug.

Just to clarify:

If
* the comment is smaller than the document canvas view height and
* the top of the comment is out of view and
* you're clicking into the comment at the first time or want to edit the comment if the cursor is already in the comment,
then the document canvas view jumps a hand's width up above the comment and not only to the top of the comment.
Comment 2 Buovjaga 2017-03-13 12:35:14 UTC

*** This bug has been marked as a duplicate of bug 91519 ***