public Element getDragHelper(I_CmsDropTarget target) {

        closeHelpBubble(null);
        // using the widget element as the drag helper also to avoid cloning issues on input fields
        m_dragHelper = getElement();
        Element parentElement = getElement().getParentElement();
        if (parentElement == null) {
            parentElement = target.getElement();
        }
        int elementTop = getElement().getAbsoluteTop();
        int parentTop = parentElement.getAbsoluteTop();
        Style style = m_dragHelper.getStyle();
        style.setWidth(m_dragHelper.getOffsetWidth(), Unit.PX);
        // the dragging class will set position absolute
        style.setTop(elementTop - parentTop, Unit.PX);
        m_dragHelper.addClassName(formCss().dragHelper());
        return m_dragHelper;
    }
public Element getDragHelper ( I_CmsDropTarget target ) { closeHelpBubble ( null ) ; m_dragHelper = getElement ( ) ; Element parentElement = getElement ( ) . getParentElement ( ) ; if ( parentElement == null ) { parentElement = target . getElement ( ) ; } int elementTop = getElement ( ) . getAbsoluteTop ( ) ; int parentTop = parentElement . getAbsoluteTop ( ) ; Style style = m_dragHelper . getStyle ( ) ; style . setWidth ( m_dragHelper . getOffsetWidth ( ) , Unit . PX ) ; style . setTop ( elementTop - parentTop , Unit . PX ) ; m_dragHelper . addClassName ( formCss ( ) . dragHelper ( ) ) ; return m_dragHelper ; }
@see org.opencms.gwt.client.dnd.I_CmsDraggable#getDragHelper(org.opencms.gwt.client.dnd.I_CmsDropTarget)