                     # check whether it is an internal drop or not
                     internalDrop = helper.checkOrigin(event)
                     helper.removeTmpNodes()
-                    position = helper.calcPosition(ui, offset)
+                    position = helper.calcPosition(ui, offset, event)
                     imageInsert = helper.createInsertElement(ui, false)
 
                     if position is "middle"

                        editable.append overlay.right

                        helper.removeTmpNodes()
                        position = helper.calcPosition(ui, offset)

                        createTmp = ->
                            if position is "middle"

                    helper.showOverlay position

                handleStartEvent: (event, ui) ->
                    internalDrop = helper.checkOrigin(event)
                    $(event.target).css('display','none') if internalDrop

                    $.ui.ddmanager.prepareOffsets(
                        $(event.target).data('draggable'), event
                    )
                    
                    $(event.target).remove() if internalDrop
                    $(document).trigger('startPreventSave');

                handleStopEvent: (event, ui) ->
