When calling score.layoutChantLines() multiple times on a score with an annotation, the annotation was only being positioned correctly the first time, because the x and y values were endlessly accumulating. The upshot was that after re-laying out a score, e.g., because the window was resized, the annotations would no longer be visible.
When calling score.layoutChantLines() multiple times on a score with an annotation, the annotation was only being positioned correctly the first time, because the x and y values were endlessly accumulating. The upshot was that after re-laying out a score, e.g., because the window was resized, the annotations would no longer be visible.