set min size for frame.
switch view in sdi frame.