open_in_new
content_copy
var scale = Math.min( availableWidth / contentWidth, availableHeight / contentHeight );