     span.appendChild prog
 
     updateView = (prg) =>
-      if prg.progress?
+      if prg.progress? and not (min? and prg.progress < min)
         prog.setAttribute 'value', prg.progress
       else
         prog.removeAttribute 'value'

  consumeStatusBar: (bar) ->
    @statusBar = bar


  create: (p = {progress: 0}) ->
    @activate()
    p.emitter = new Emitter

    @onDidUpdateStack =>
      span.removeChild span.firstChild
      # find the first determinate progress bar
      # if there is none, use the first one in the stack
      if (global = (@stack.find (p) => p.progress?) ? @stack[0])?
        span.appendChild @progressView global, min: 0.01
      else
        span.appendChild @progressView @create()

    span
