You are misunderstanding how deltas work.
"Delta" means the "difference", as you have used when setting the y value. If the views have the same height, simply set the delta of the height to 0. If the height is different, set the delta to the difference.