Is heightPadding supposed to be here twice?  If so, either redefine heightPadding to be 40 or do
```C
return 2*heightPadding + ceilf(strSize.size.height);
```