TTBoxStyle to take padding into account

I thought TTBoxStyle didn't consider padding correctly when it calculates the size for the box, and this was my attempt to fix it. Unfortunately I don't remember the details any more :-(