Bug 135637 - Text-Style-Dropdown-Menu isn't Empty when Multiple Styles are Selected.
Summary: Text-Style-Dropdown-Menu isn't Empty when Multiple Styles are Selected.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles
  Show dependency treegraph
 
Reported: 2020-08-11 13:33 UTC by yehim83708
Modified: 2024-09-09 19:02 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (134.46 KB, image/png)
2020-08-11 13:35 UTC, yehim83708
Details
Screenshot 2 (133.43 KB, image/png)
2020-08-11 13:38 UTC, yehim83708
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yehim83708 2020-08-11 13:33:40 UTC
Description:
When multiple text-styles are selected (such as Title, Heading 1 and Text-body), the font- and the font-size-dropdown menus react as they should: They go blank because multiple values are selected.

HOWEVER! The text-style dropdown-menu doesn't go blank. It displays one of the styles (i haven't figured out how it chooses which of the styles it displays).

I recommend to just look at the screenshots, they are pretty self-explanatory.

Steps to Reproduce:
1. Write a text with multiple different styles (such as Title, Heading 1 and Text-body)
2. Select multiple text-styles.
3. Look at the text-style dropdown-menu which, for some reason, still isn't empty.

Actual Results:
The text-style dropdown-menu doesn't go blank (it should go blank though). It displays one of the styles.

Expected Results:
The text-style dropdown-menu should go blank/empty, as this notifies the user that he has selected multiple styles.


Reproducible: Always


User Profile Reset: No



Additional Info:
This should work with any new document. Just try it out, according to the 'steps to reproduce'.

Also, if I remember correctly, this
1. also happened on Linux Mint.
2. Was present since at least version 6.3.6.1
Comment 1 yehim83708 2020-08-11 13:35:35 UTC
Created attachment 164161 [details]
Screenshot
Comment 2 yehim83708 2020-08-11 13:38:46 UTC
Created attachment 164162 [details]
Screenshot 2
Comment 3 Xisco Faulí 2020-08-11 14:19:59 UTC
I don't reproduce it in

Version: 7.1.0.0.alpha0+
Build ID: 0de191e1d201d691c2196cf1aef412a98affb66f
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Xisco Faulí 2020-08-11 14:27:05 UTC
Actually, the selected style is where the cursor is. I don't think it's an issue. Does it makes sense to you ?
Comment 5 yehim83708 2020-08-13 08:38:36 UTC
(In reply to Xisco Faulí from comment #3)
> I don't reproduce it in
> 
> Version: 7.1.0.0.alpha0+
> Build ID: 0de191e1d201d691c2196cf1aef412a98affb66f
> CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
> Locale: en-US (en_US.UTF-8); UI: en-US
> Calc: threaded
Meaning it's empty, just as it should be?
Also, I noticed that I forgot to post my LO-data:
Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU-Threads: 8; BS: Windows 10.0 Build 18362; UI-Render: Skia/Raster; VCL: win
Locale: de-AT (de_AT); UI: de-DE
Calc: threaded(


In reply to Xisco Faulí from comment #4)
> Actually, the selected style is where the cursor is. I don't think it's an
> issue. Does it makes sense to you ?
1. It's not always where the cursor is. For example, if I make a small document with an an H1 and a textbody-text, it doesn't matter where the cursor is. If I select the text from Textbody to H1, the dropdown-menu says "Heading 1". If I start from H1 and end the selection-movement in the Textbody-text, (which would place the cursor in Textbody,) it still says "Heading 1".
Sometimes it doesn't seem to follow that rule though. It's really weird.
(Actually, it might always display the style that is highest up on the page)

2.1. Unfortunately, it doesn't make sense to me. Both the font-dropdown-menu and the font-size-dropdown-menus act according to the norm: they go blank when you highlight multiple different options. The style-dropdown-menu is the only thing that doesn't have this feature.
2.2. This omits information. It's useful to know, whether multiple styles were selected. If the user wants to know what style a certain paragraph has, he clicks on it.
2.3. This is just... an unusual way to handle different text-styles/types.
In some very common applications (such as Thunderbird, WordPad and even MS Word), dropdown-menus indicate that multiple different options were selected.
Usually it's by making the dropdown-menu go blank. Thunderbid shows a "(mixed)" message instead.
Personally I prefer the menu to go blank. This makes it easier to spot without needing to read text.

Do my arguments make sense?
Comment 6 Dieter 2020-08-18 05:22:51 UTC
Reproducible for me with

Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

For me it seems, that LO always highlights the style at the beginning of selected text. I would consder this as a bug.

cc: Design-Team for decision
Comment 7 Dieter 2020-08-18 05:28:49 UTC
Additional information:

Same with paragraph style in sidebar. And very strange behaviour with character styles: Always Default character Style is highlighted, although this style isn't used. I haven't tested with table styles and list styles but there should be a consistent behaviour
Comment 8 Clarc 2020-08-19 18:55:25 UTC
> ...And very strange behaviour with
> character styles: Always Default character Style is highlighted, although
> this style isn't used. I haven't tested with table styles and list styles
> but there should be a consistent behaviour

Not sure what you mean by that.



Anyways, this weird dropdown menu behaviour also exists on Linux (Mint):

Version: 7.0.0.3
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: de-AT (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 9 Dieter 2020-08-20 06:13:04 UTC
(In reply to Clarc from comment #8)
> > ...And very strange behaviour with
> > character styles: Always Default character Style is highlighted, although
> > this style isn't used. I haven't tested with table styles and list styles
> > but there should be a consistent behaviour
> 
> Not sure what you mean by that.

It's about the list of character styles in the sidebar.
Comment 10 Clarc 2020-08-20 08:32:20 UTC
(In reply to Dieter from comment #9)
> (In reply to Clarc from comment #8)
> > > ...And very strange behaviour with
> > > character styles: Always Default character Style is highlighted, although
> > > this style isn't used. I haven't tested with table styles and list styles
> > > but there should be a consistent behaviour
> > 
> > Not sure what you mean by that.
> 
> It's about the list of character styles in the sidebar.

Yeah, you're right! In my case, it doesn't even open the heading-tree and highlight Heading 1 / Title when placing the cursor on that kind of text.

This must be a new bug, it used to work properly a month ago.

However, I'd suggest you create a new bug for this, as it seems to be a slightly different issue.
Comment 11 Dieter 2020-08-22 08:43:24 UTC
(In reply to Clarc from comment #10)
> This must be a new bug, it used to work properly a month ago.

Don't think so, because same behaviour in

Version: 6.3.6.2 (x64)
Build-ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
CPU-Threads: 4; BS: Windows 10.0; UI-Render: GL; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: CL
Comment 12 Clarc 2020-08-22 09:01:50 UTC Comment hidden (obsolete)
Comment 13 Dieter 2020-08-24 05:27:36 UTC
(In reply to Clarc from comment #12)
> (In reply to Dieter from comment #11)
> > (In reply to Clarc from comment #10)
> > > This must be a new bug, it used to work properly a month ago.
> > 
> > Don't think so, because same behaviour in
> > 
> > Version: 6.3.6.2 (x64)
> > Build-ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
> > CPU-Threads: 4; BS: Windows 10.0; UI-Render: GL; VCL: win; 
> > Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
> > Calc: CL
> 
> Is this your bug?
> https://bugs.documentfoundation.org/show_bug.cgi?id=135980
Comment 14 Clarc 2020-08-24 08:17:29 UTC
(In reply to Dieter from comment #13)
> (In reply to Clarc from comment #12)
> > (In reply to Dieter from comment #11)
> > > (In reply to Clarc from comment #10)
> > > > This must be a new bug, it used to work properly a month ago.
> > > 
> > > Don't think so, because same behaviour in
> > > 
> > > Version: 6.3.6.2 (x64)
> > > Build-ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
> > > CPU-Threads: 4; BS: Windows 10.0; UI-Render: GL; VCL: win; 
> > > Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
> > > Calc: CL
> 
> Is this your bug?
> https://bugs.documentfoundation.org/show_bug.cgi?id=135980

Yes
Comment 15 Heiko Tietze 2020-09-07 08:54:22 UTC
I agree with the OP, multiple selection of styles should blank the dropdown and clear the tree selection at the sidebar.
Comment 16 QA Administrators 2022-09-08 05:06:32 UTC Comment hidden (obsolete)
Comment 17 Clarc 2022-09-13 18:05:01 UTC
This bug still is present in Version 7.4.0.3.

Version: 7.4.0.3 / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Flatpak
Calc: threaded
Comment 18 Clarc 2022-09-13 18:10:23 UTC
Also, the behavior Dieter mentioned also still exists.

Not only is a style shown in the top-left (which shouldn't be the case) a paragraph-style also gets highlighted in the sidebar (which also shouldn't be the case).
Comment 19 Buovjaga 2024-09-09 19:02:29 UTC
Still repro and already in 5.2 and 3.5.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3231db0341baffd2547c50d36ef7c00aaa11601d
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 9 September 2024