Use style attributes when storing the previous elment size instead of th...

...e literal size of the element #220