frmatthew / exsurge

A JavaScript library for rendering Gregorian Chant in square note notation
MIT License
54 stars 13 forks source link

Fix problem with relaying out scores with annotations: #64

Closed bbloomf closed 8 years ago

bbloomf commented 8 years ago

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.