Bind resize event to window to reposition modal windows correctly