new way to calculate wrapper height