Fixed inaccurate distance to bottom edge of superview

This was fixed previously but since reverted in commit 984c122fc714ccd3ce837fb844110a8351128e96