core/responsive-image.js
function applyAspectRatioPadding(image) {
  var ratioPadding = (image.knownDimensions[1] / image.knownDimensions[0]) * 100.0;
  DOM.setStyle(image.element, 'paddingBottom', ratioPadding + '%');
}
function applyAspectRatioPadding(image) {
  var ratioPadding = (image.knownDimensions[1] / image.knownDimensions[0]) * 100.0;
  DOM.setStyle(image.element, 'paddingBottom', ratioPadding + '%');
}
function applyAspectRatioPadding ( image ) { var ratioPadding = ( image . knownDimensions [ 1 ] / image . knownDimensions [ 0 ] ) * 100.0 ; DOM . setStyle ( image . element , 'paddingBottom' , ratioPadding + '%' ) ; }
Set a padding percentage which allows the image to scale proportionally.
@param {ResponsiveImage} image The image data.
Set a padding percentage which allows the image to scale proportionally .