Fix firefox scrollbar and overflow problems due to scale property of overlay.