Add function to layout with smooth lower edge