Yeah, that's the issue. Getting clientWidth will trigger a reflow, so I can't think of any other way to solve that.