Bug 160448 - WRITER: when applying a style, the list of styles will autoscroll so that this style would be on top (annoying)
Summary: WRITER: when applying a style, the list of styles will autoscroll so that thi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.5.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 161203 (view as bug list)
Depends on:
Blocks: Sidebar-Styles Writer-Styles-Paragraph
  Show dependency treegraph
 
Reported: 2024-03-31 17:16 UTC by peter josvai
Modified: 2024-06-05 19:36 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peter josvai 2024-03-31 17:16:08 UTC
Description:
as in the subject

Steps to Reproduce:
1. apply a style to a paragraph
2. now... pick another one and apply that
3. look at your list of styles

Actual Results:
on applying a style the list autoscrolls

Expected Results:
the list of styles should remain unmoved

(there's no logical reason to make it jump to the top at all...
I mean, if you clicked on it, it was in view, so there's no need to reposition the list..
it really should work without that "reload" glitch)



Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
Comment 1 Robert Großkopf 2024-04-15 07:01:37 UTC
Don't know if I understood right.
Opened a new Writer document.
Write text content for 2 paragraphs.
Set in sidebar the format for one of these paragraphs to "Preformatted Text" on the sidebar.
When leaving sidebar "Preformatted Text" will scroll up so I could see it has been chosen.
Click on the other paragraph I have created. Sidebar scrolls to "Default Paragraph Style". Will show the style of the paragraph.
Set the paragraph to "Header".
When leaving sidebar "Header" will scroll up so I could see it has been chosen.

Last chosen style will be on top of the list every time.

This is the same behavior in LO 24.2.2.2 on OpenSUSE 15.6 64bit rpm Linux.

Indeed scrolling is a little bet confusing here, because we will see the last clicked entry without any problems. Lets wait for arguments …

I will set this one to "NEW"
Comment 2 Heiko Tietze 2024-05-22 07:53:04 UTC
*** Bug 161203 has been marked as a duplicate of this bug. ***
Comment 3 Heiko Tietze 2024-05-22 07:58:46 UTC
Keeping the Stylist's position on user input vs. when it changes programmatically after the focused paragraph has changed, sounds reasonable. But we need some feedback, as requested in Bug 118725 "No visual change after applying a paragraph style, until scrolling (no redraw)". And this can be either the document canvas scrolling up when a style is applied or the Stylist entry. Or we reject this feedback, which is of course only relevant for similar styles.
Comment 4 Eyal Rozenberg 2024-05-22 10:19:36 UTC
(In reply to Heiko Tietze from comment #3)
> "No visual change after applying a paragraph style, until scrolling (no redraw)".

If we had some indication of both the user-selected item in the style list, and the current paragraph/selection's paragraph style (e.g. blue-background rect vs dotted-border rect), that could be the indication.
Comment 5 Eyal Rozenberg 2024-06-05 19:36:34 UTC
Adding the related bug mentioned in the dupe.