musescore / musescore/MuseScore

Reset horizontal offset when changing text alignment

Open
#30,286 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

UX/interaction
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Issue type

UX/Interaction bug (incorrect behaviour)

Description with steps to reproduce

When using the Alignement section of buttons in the properties panel to align a certain text element, the alignment takes into account the horizontal offset, resulting in not the expected behaviour and mis-aligned text.

  1. Create a new score
  2. Click on the title and drag it with the mouse a bit to the left or right of the initial position
  3. Use the Properties panel (or the new floating text popup) and click on the Alignment buttons to left/center/right align.
  4. Observe that the text is not properly centered or aligned to margin, because it has a horizontal offset applied which is taken into account while alligning.

The user expects the text to get aligned to the base box as the button indicates (i.e. exactly in the center or at a margin).

To work around this issue, the user needs to go to the hidden offset box (under the Appearance button) to manually reset the offset to achieve the proper alignment.

The solution I propose is that when clicking the alignment buttons, the horizontal offset to be automatically reset.

Supporting files, videos and screenshots
Image Image
In which versions of MuseScore Studio is this issue present?

3.6.2 - 4.6.0

Regression

No.

Operating system

Windows 11

Additional context

No response

Checklist
  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by creating a score, dragging the title horizontally, and using the Properties panel or floating text popup alignment buttons. Trace the alignment-button handling and verify that changing alignment resets the horizontal offset so the text aligns to the base box and margins.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.