       scope.scaleStep ?= 0.4
       scope.mwScaleStep ?= 0.1
       scope.moveStep ?= 100
+      scope.fitOnload ?= true
       # append stage container to current element
       element.append(ngPintura.stage.content)
       # resize stage container

        syncScope()

      setScalingDisabled = ->
        scope.scalingDisabled = ngPintura.image.minScale is ngPintura.image.maxScale

      imageLoad = ->
        scope.fitInView() if scope.fitOnload

    if viewport.height < @node.height()*@minScale
      # compute min scale based on heights of stage and image
      @minScale = viewport.height/@node.height()
    # never exceed/scale up original image size
    @minScale = Math.min(@minScale, 1)

  _fitScale: (scale) ->
