I'm using overflow:hidden to prevent the body from scrolling when an overlay is shown. The problem is this removes the scrollbar so the whole page shifts a bit to the right. It shifts again when the overlay is removes and the overflow is set back to auto.
Is there a way to get around this? I would like to freeze the document from scrolling but would like to prevent the page from jumping around.