Update layer bounds on resize

This fixes a bug where fixed-position layers are not repositioned when the
window is resized.