Also fixes an issue with themes mucking with z-indexes such that you can't click the modal.
@Traverse Does this solve your issue?
Note that this intentionally doesn't handle the edge case of resizing the window while the modal is open because it'd be a bit complex to update automatically (and would cost some CPU by possibly triggering reflows during the resize event) and probably just won't happen often enough to matter.
Also fixes an issue with themes mucking with z-indexes such that you can't click the modal.
@Traverse Does this solve your issue?
Note that this intentionally doesn't handle the edge case of resizing the window while the modal is open because it'd be a bit complex to update automatically (and would cost some CPU by possibly triggering reflows during the resize event) and probably just won't happen often enough to matter.