Added SetMaxSize to DialogViewer.