I played around with this and found a solution which handles the multiline case and centers for single and multiline.