Locked window to a minimum size