Adding 'overflow: scroll', so layout doesn't jump because of appearing-disappearing scroll bar. Not very elegant solution, but works.