[MU3] Solve issue of fixed spacer between last staff and bottom of page. #7756
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solve issue of fixed spacer between last staff and bottom of page.
A negative value for a fixed spacer on the last staff will no longer push the last staff below the
Music Bottom Margin
.Also the behavior is similar for both pre-3.6 staff spacing and vertical staves adjustment:
When creating a fixed spacer on the last staff the gap is the distance between the bottom of the last staff and
Page Bottom Margin
.When the gap is increased the last staff is pushed up.
When the gap is decreased the last staff is pushed down but it will never pushed below the
Music Bottom Margin
Because both pre-3.6 staff spacing and vertical staves adjustment are based on dividing remaining space between the last staff and
Music Bottom Margin
, when maximum distances between staves and/or systems are too small, it is not possible to honor the fixed spacer on the last staff with violating these maximum distances. In these situation, the maximum distances take precedence and the fixed gap between the last staff andMusic Bottom Margin
. is honored.In this, a fixed spacer on the last staff shows a slightly different behavior as fixed spacers on other staves.
This PR for
master
is similar to #7757 for3.x
.