LPS-35146 Customize the width and height of a dialog through configuration. Fix wrong logic on default value.