Content above/below invisible staff affects system distance
P2 - Medium
S3 - Major
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.
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.