Added offsetWidth.  Reformated code structure.
reved podspec v