Fixed the bug layout bug when scrollbars are present