     top = selectionTop-2-@frame.$el.outerHeight()
 
     @_showAtCoordinates top, left
+    @_fadeIn()

  constructor: ->
    super
    @$el.on 'mouseleave', => @_removeClass 'fl-button-state-hovered'

  _textContainer: ($el) ->
    for el in $el.parents()
      return el if $(el).css('display') == 'block'

  placeNearElement: (el) ->
    $el = $(el)
    top = $el.offset().top + $el.outerHeight()/2 - @frame.$el.outerHeight()/2

    textContainer = @_textContainer($el)
    range = document.createRange()
    range.setStartBefore textContainer
    range.setEndAfter textContainer

    @$el.removeClass classes
    @frame.sizeFrameToFitContent()

  _fadeIn: ->
    return if @_visible

    @_visible = true
    @frame.fadeIn()

  _showAtCoordinates: (top, left) =>
    containerOffset = FactlinkJailRoot.$factlinkCoreContainer.offset()
    left -= containerOffset.left
    top -= containerOffset.top
