Fix #13543. offsetWidth is wrong on non-1 zoom. Close gh-1218.