Improved resizing

Changed minimum size to prefered size.