[ChoiceBox] fix autoresize of dialog