Line breaks in intrument name make status bar's height change

• Oct 29, 2020 - 17:09
Reported version
3.5
Type
Ergonomical (UX)
Frequency
Few
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

When the instrument's full name contains a line break (for example in the Barbershop Quartet default template I often use), each time a element on that staff is selected (rest, note, etc.), the height of the status bar changes.
When the element is deselected, the height of the status bar goes back to normal (1 line).
This is sometimes disturbing to have the status bar and all bottom panels "move" while editing the score.

I would recommend stripping line breaks (or replacing them with a space) in the instrument names in the status bar to keep it 1-line-high.

OS: Debian GNU/Linux 10 (buster), Arch.: x86_64, MuseScore version (64-bit): 3.6.0.316888218, revision: 6b901e7


Comments

Frequency Once Few
Reported version 3.x-dev 3.5

I've been meaning to add this as either a minor bug or suggestion to improve.

I would like to add a picture of what I'm dealing with.
big status bar.PNG
As you can see, I have very little canvas left visible and worse there are palettes I can only see part of.

I would like to have a look at this and maybe solve it. Do we just want to replace line breaks with spaces? Or would somebody know another solution?

I think spaces are fine. It could also be replaced by slashes to know where the newlines were.
Thanks for your help !

Status PR created fixed

Fixed in branch 3.x, commit c89c62fbe2

_Fix #312357: Line breaks in instrument name make status bar's height change

For the Status Bar, newlines in instrument names are now replaced by spaces, to make sure that the the status bar text will never contain more than one line. Otherwise, the height of the status bar may change, which is not desirable._

Fix version
3.6.0