 
     @addSubView @arrow
 
-  positionContextMenu:()->
+  positionContextMenu:->
     options     = @getOptions()
     event       = options.event or {}
     mainView    = @getSingleton 'mainView'

    options.arrow          ?= no

    super options, data

    o = @getOptions()


    top         = (options.y or event.pageY or 0) + options.offset.top
    left        = (options.x or event.pageX or 0) + options.offset.left

    expectedTop  = top
    expectedLeft = left

    if top + menuHeight > mainHeight
      top  = mainHeight - menuHeight + options.offset.top

    if left + menuWidth > mainWidth
      left  = mainWidth - menuWidth + options.offset.left

    @topMargin  = expectedTop  - top
    @leftMargin = expectedLeft - left

    @getDomElement().css
      width     : "#{options.menuWidth}px"
      top       : top
      left      : left
