           dragState.containment.viewBounds = @[view].getBounds()
         dragState.containment.viewBounds or= @parent.getBounds()
         dragState.containment.padding = \
-          options.containment.padding or x: 0, y: 0
+          options.containment.padding or top: 0, right: 0, bottom: 0, left: 0
 
       # TODO: should move these lines
       dragState.handle      = options.handle


  mouseUp:(event)->    yes

  paste:(event)->      yes

  mouseDown:(event)->
    (KD.getSingleton "windowController").setKeyView null
    yes

  # HTML5 DND
  dragEnter:(e)->

    dragGlobDir.x = if x > 0 then 'right'  else 'left'
    dragGlobDir.y = if y > 0 then 'bottom' else 'top'

    if @dragIsAllowed
      el = @$()
      dragMeta   = @dragState.meta
      targetPosX = if dragMeta.right  and not dragMeta.left then 'right'  else 'left'
      targetPosY = if dragMeta.bottom and not dragMeta.top  then 'bottom' else 'top'
