Include scale in margin calculation