Ajust size of edit dialog when input fields visibility change