Add sizing code for buttons in dialog. Solves #25314051