contentPadding option can now be a function