   body.classList.remove('cc-opened')
   componentModel.closeScroll?()
 
+coachAPI.handleResize = ->
+  return unless componentModel.el?
+  {top} = componentModel.el.getBoundingClientRect()
+  {scrollY} = window
+  top += scrollY
+  window.scrollTo(0, top)
+
 coachAPI.handleError = (error) ->
   channel.emit('error', error)
   console.info(error)

    CCWrapped.unmountFrom(modalNode)
    mountNode.removeChild(modalNode)

  @component = CCWrapped.render(modalNode, props)
  @close = props.close

  @component


  {scrollY} = window
  top +=  scrollY
  componentModel.update(
    scrollY: scrollY
    closeScroll: ->
      scrollTo(@scrollY)
  )
  scrollTo(top)
  body.classList.add('cc-opened')
