Enhanced the auto-box-sizing script to avoid flicker.