Use offsetWidth to handle scrollbar size.