Include margin in height of wrapped element

Fixed height calculation for sticky elements with margin.