Remove dual call to resize() on refresh() method

On refresh: method, obj.resize is called two times (lines 3478 and 3480)
Removing, improve as well a little the refresh performance