function newMag = findZoomOutMagConstrained(apiScrollpanel)
%findZoomOutMagConstrained Find constrained zoom out magnification.
%    Y = findZoomMag(apiScrollpanel)

%   Copyright 1993-2004 The MathWorks, Inc.  
%   $Revision: 1.1.8.1 $  $Date: 2004/08/10 01:50:08 $

    newMag = findZoomMag('out',apiScrollpanel.getMagnification());
    
    % Bound mag so min(current,fitMag,1.) is smallest allowed
    minMag = min([apiScrollpanel.getMagnification(),...
                  apiScrollpanel.findFitMag(),...
                  1]);
    newMag = max(newMag,minMag);
