Avoid setting silly widths and scales when the browser is hidden.