we needed to force layout before adding the class? 
we can just do `modal.offsetWidth`