fix #19129: Small note in chord is detached from stem

Use the max width of the notes instead of only the top note.