routedlg: layout correction