 
   className: 'rotateContainer'
   initialize: ->
+    # set tranform-origin css property
+    @$el.css({'transform-origin': 'left top'})
     @handlerContainer = new HandlerContainerView
     @display = new DisplayContainerView
 

    @contains = new RotateContainerView
    @listenToDragStart()
    @position()
  
  position: ()->
    for prop in 'top left width height'.split ' '

      width: w
      height: h
    @_state.coef = @coefs[@_state.card] if @_state.card?
    # we calculate the coordinates of the center of the rotation container
    offset = @$el.offset()
    @_state.center =
      x: offset.left + (w / 2) * Math.cos(@beta) - (h / 2) * Math.sin(@beta)
      y: offset.top + (w / 2) * Math.sin(@beta) + (h / 2) * Math.cos(@beta)

    #DEBUG

    #console.log("C2")
    #console.log(@_state.center)

    #console.log(@_state.center)

  # @chainable
  move: (event)=>
