Content above/below invisible staff affects system distance
Reported version
3.0
Priority
P2 - Medium
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
Related to #281024: Invisible staves inappropriately factored into note spacing but this time vertical rather than horizontal, and luckily, I think, easier to fix.
Score for three instruments. Add a note somewhere on third instrument way way way below staff. Now hide that instrument in Edit / Instruments. Result: extra space is reserved for it. That's because in System::minBottom(), we call System::lastVisibleStaff(), but that function considers only "hidden" staves (a la "Hide empty staves"), not invisible ones. Looking at the other places this function is used, I can't see any problem just fixing it to check both flags.
Comments
https://github.com/musescore/MuseScore/pull/4722
Fixed in branch master, commit 541068154e
fix #284641: skylines of invisible staves affect system spacing
Automatically closed -- issue fixed for 2 weeks with no activity.