Bug 156370 - Assigning a paragraph style causes the cursor jumps back to section title
Summary: Assigning a paragraph style causes the cursor jumps back to section title
Status: RESOLVED DUPLICATE of bug 154701
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-19 03:23 UTC by vicxp0518
Modified: 2024-01-31 04:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file for Styling Jump problem (19.48 KB, application/vnd.oasis.opendocument.text)
2023-07-21 03:02 UTC, vicxp0518
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vicxp0518 2023-07-19 03:23:46 UTC
Description:
Assigning a paragraph style causes the cursor jumps back to the current section's title/heading, leading to confusion of where we were at.

Steps to Reproduce:
0.No matter which type of "User Interface" is in.
1.Prepare a long section of article, which should be taller than the screen.
2.Assign any "Heading" styles to the title.
3.Scroll down by some distance, to ensure that the title has passed above screen.
4.Try to assign any paragraph style to any body part of the article.

Actual Results:
The screen immediately jumps back to the title/heading paragraph of the article, causes great confusion, since you have to reallocate from where your focus was at.

Expected Results:
Don't jump to cursor immediately.


Reproducible: Always


User Profile Reset: No

Additional Info:
Please allow the cursor to be off-screen should solve similar issues.
Comment 1 ysui2022 2023-07-19 21:28:48 UTC
I didn't reproduce the bug successfully. When I changed the paragraph style, it just changed and nothing happened. Maybe you could try to provide us a sample file?

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 2 Buovjaga 2023-07-20 04:54:45 UTC
Works without jumps here as well.

Please copy and paste to a comment the info from your Help - About dialog by clicking the copy button.

NixOS
Version: 7.5.4.1 (X86_64) / LibreOffice Community
Build ID: 50(Build:1)
CPU threads: 16; OS: Linux 6.3; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 3 vicxp0518 2023-07-20 11:34:14 UTC
(In reply to ysui2022 from comment #1)
> I didn't reproduce the bug successfully. When I changed the paragraph style,
> it just changed and nothing happened. Maybe you could try to provide us a
> sample file?
> 
> Version: 7.5.4.2 (X86_64) / LibreOffice Community
> Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
> CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL:
> win
> Locale: en-US (en_US); UI: en-US
> Calc: CL threaded

Yeah, you must have several "Sections of articles". Like this:
1. Title 1 ( <<< must've been assigned with a Heading style).
   ....content en paragraph 1....
   ....content en paragraph 2....
   ....content en paragraph 3....
2. Title 2 ( <<< must've been assigned with a Heading style).
   ....content en paragraph 4....
   ....content en paragraph 5....
   ....content en paragraph 6....
3. Title 3 ( <<< must've been assigned with a Heading style).
   ...

And take example say, to assign a paragraph style to paragraph #6, you first select that paragraph, then assign a style to it from either panel or toolbar, then immediately you'll see, the cursor jumps to the beginning of Title 2 (ie. where the paragraph #6 resides underneath), causing the screen scroll up as well.

To me, this happens on both Win and Mac version, on whichever file, on whatever heading level, given that there is a Heading above.
Comment 4 vicxp0518 2023-07-20 11:35:31 UTC
(In reply to Buovjaga from comment #2)
> Works without jumps here as well.
> 
> Please copy and paste to a comment the info from your Help - About dialog by
> clicking the copy button.
> 
> NixOS
> Version: 7.5.4.1 (X86_64) / LibreOffice Community
> Build ID: 50(Build:1)
> CPU threads: 16; OS: Linux 6.3; UI render: default; VCL: gtk3
> Locale: fi-FI (fi_FI.UTF-8); UI: en-US
> Calc: threaded

Hi, check out my reply to ysui2022@gmail.com,
Regards
Comment 5 vicxp0518 2023-07-20 11:43:19 UTC
(In reply to vicxp0518 from comment #4)
> (In reply to Buovjaga from comment #2)
> > Works without jumps here as well.
> > 
> > Please copy and paste to a comment the info from your Help - About dialog by
> > clicking the copy button.
> > 
> > NixOS
> > Version: 7.5.4.1 (X86_64) / LibreOffice Community
> > Build ID: 50(Build:1)
> > CPU threads: 16; OS: Linux 6.3; UI render: default; VCL: gtk3
> > Locale: fi-FI (fi_FI.UTF-8); UI: en-US
> > Calc: threaded
> 
> Hi, check out my reply to ysui2022@gmail.com,
> Regards

Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 8; OS: Windows 10.0 Build 22000; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: en-GB
Calc: threaded

To be a helping hand, may I assume: is there anything to check with the Navigator panel? Is it the culprit who tries to reset the cursor position after style changing? I've tried to close the panel or even switch to other User Interfaces, but problem remains. Also tried toggling Skia/OpenCL on or off but to no avail.
Comment 6 Buovjaga 2023-07-20 12:58:29 UTC
(In reply to vicxp0518 from comment #3)
> Yeah, you must have several "Sections of articles". Like this:
> 1. Title 1 ( <<< must've been assigned with a Heading style).
>    ....content en paragraph 1....
>    ....content en paragraph 2....
>    ....content en paragraph 3....
> 2. Title 2 ( <<< must've been assigned with a Heading style).
>    ....content en paragraph 4....
>    ....content en paragraph 5....
>    ....content en paragraph 6....
> 3. Title 3 ( <<< must've been assigned with a Heading style).
>    ...
> 
> And take example say, to assign a paragraph style to paragraph #6, you first
> select that paragraph, then assign a style to it from either panel or
> toolbar, then immediately you'll see, the cursor jumps to the beginning of
> Title 2 (ie. where the paragraph #6 resides underneath), causing the screen
> scroll up as well.

Then we really need an example document to do precise testing.
Comment 7 vicxp0518 2023-07-21 03:02:02 UTC
Created attachment 188502 [details]
Test file for Styling Jump problem
Comment 8 vicxp0518 2023-07-21 03:03:02 UTC
(In reply to Buovjaga from comment #6)
> (In reply to vicxp0518 from comment #3)
> > Yeah, you must have several "Sections of articles". Like this:
> > 1. Title 1 ( <<< must've been assigned with a Heading style).
> >    ....content en paragraph 1....
> >    ....content en paragraph 2....
> >    ....content en paragraph 3....
> > 2. Title 2 ( <<< must've been assigned with a Heading style).
> >    ....content en paragraph 4....
> >    ....content en paragraph 5....
> >    ....content en paragraph 6....
> > 3. Title 3 ( <<< must've been assigned with a Heading style).
> >    ...
> > 
> > And take example say, to assign a paragraph style to paragraph #6, you first
> > select that paragraph, then assign a style to it from either panel or
> > toolbar, then immediately you'll see, the cursor jumps to the beginning of
> > Title 2 (ie. where the paragraph #6 resides underneath), causing the screen
> > scroll up as well.
> 
> Then we really need an example document to do precise testing.

Uploaded. Regards.
Comment 9 Buovjaga 2023-07-21 09:22:09 UTC
(In reply to vicxp0518 from comment #7)
> Created attachment 188502 [details]
> Test file for Styling Jump problem

Thanks.

I tested by changing the paragraph style of

"This is the 3rd text body paragraph under Heading 2. Scroll and zoom in enough to flush out the line reads “This is Heading 2” from your current viewport. Then, assign a style to this paragraph e.g. “Quotations” or any. Watch how the cursor jumps up away, the cursor will take your viewport plus your concentration up away as well."

found on page 4. No problem for me. I hope others can test more.
Comment 10 vicxp0518 2023-07-29 17:19:52 UTC
On Windows 10 system, this problem seems doesn't happen, but insisted to happen on Windows 11 and Mac OS X Mojave.
Comment 11 Buovjaga 2023-07-29 18:17:38 UTC
Ok, then let's keep as All / All.
Comment 12 Stéphane Guillou (stragu) 2023-08-03 15:30:43 UTC
Not reproduced either in:

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 2; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Please test resetting your profile, or in safe mode, to see if the issue persists.
Please also update to the latest release, 7.5.5.
Thank you!
Comment 13 QA Administrators 2024-01-31 03:13:55 UTC Comment hidden (obsolete)
Comment 14 Stéphane Guillou (stragu) 2024-01-31 04:22:10 UTC
Ha, turns out it was most likely due to Outline Folding being on.

Marking as duplicate of bug 154701, which is resolved in the soon-to-be-released version 24.2.

Thanks!

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