 
 
   onScrollPage: -> _.debounce =>
-    @setState({ showWidget: no })
+    @setState({ widgetVisible: no })
   , 500, { leading: yes, trailing: no }
 
 

  handleUnreadCountClick: ->

    @setCoordinates()
    @setState { showWidget: yes }


  onWidgetClose: ->

    @setState { showWidget: no }


  renderStackUpdatedWidget: ->

    { coordinates, showWidget } = @state

    return null  unless showWidget
    return null  unless @props.stack?.getUnreadCount()
    return null  if not coordinates.left and coordinates.top



    super

    @state =
      widgetVisible: no
      coordinates: { left: 0, top: 0 }


  componentWillReceiveProps: (nextProps) ->

    if @props.stack?.getUnreadCount() < nextProps.stack?.getUnreadCount()
      @setState { widgetVisible: yes }

    @setCoordinates()

