Worked on the padding which behaves strange, and is way slower when called from outside than by the internal resize.