Add minimum bounds to resizing. Fixes several problems and crashes.
Add minimum bounds to resizing. Fixes several problems and crashes.

leecbaker/datareftool,leecbaker/datareftool,leecbaker/datareftool