def on_resize(event):
    """ Keep overlay in place upon resize. """
    viewer = event.source._wrapper
    viewer._shortcuts.pos = 10, event.size[1]
    viewer._picking_text.pos = 10, event.size[1] - 10
    viewer._fps_text.pos = event.size[0] - 10, 10
