[OE-3363] Added functionaility to dynamically rescale the dialog so that it never displays outside of the window viewport; adjusted the iframe dimensions so that it always displayed within the constraints of the dialog