Use the better supported offsetWidth property to get a fields width

Fixes #212