Keep note centered on staff through resizes

Before, if the window was resized and the staff width changed, then
the whole note would no longer be centered (only a page refresh
could correct it). This fixes the issue by having the `Staff` component
listen to `window` `resize` events.