Fix resize issue for Firefox and browsers with always-present scrollbars