Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #9697: align opened scores in the middle instead of the top left #12513

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martin-danhier
Copy link
Contributor

@martin-danhier martin-danhier commented Jul 22, 2022

Resolves: #9697

Hello,

I first tried to fix this issue by simply centering the view horizontally with a small margin from the top vertically, but I didn't find the result very helpful for long scores with more than one page or continuous views. I thus thought it made sense to make the choice of the default position depend on the view mode and the number of pages.

Here is what it looks like so far:

Page mode, 1 page

Center horizontally, and align top with a small margin.

Page mode, 2 pages or more

It aligns the score on the top left with a small margin.

I initially thought to center the first page, but I think the space is better used by showing more of the score.

Horizontal continuous mode

Center vertically, and align left with a small margin.

Vertical continuous mode

Same as 1 page. This is the fallback alignment.

Switching tabs

I also noticed that the score was being moved to the top left each time one of the "Score"/"Publish"/... tabs was changed.

With a simple fix, it can stay as it was in the previous tab (in the code, it feeled like an unwanted side effect). Though, we might want to reset the default position instead of keeping the previous one?

I included the fix, but idk if I should create a separate issue?

Let me know what you think :-)

@martin-danhier
Copy link
Contributor Author

Hello, I rebased the changes to the latest version of master, and it still works.

There is just a slight problem when:

  1. the score is loaded in page mode with several parts opened
  2. the main score is changed to continuous mode
  3. a part is opened: it will center horizontally as if it was in page mode, even though it is in continuous mode.

However, this is fixed with the changes from my other PR for independent view modes #12618. Together, the two PR work correctly for independent and centered views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MU4 Issue] Score page should be aligned to the middle when opened
1 participant