Results 1 to 4 of 4

Thread: Drag And Drop ListView issues on Linux

  1. #1

    Question Drag And Drop ListView issues on Linux

    Hi all,

    I'm testing the drag and drop work with some stuff I've been doing. I'm able to reproduce an issue with a GWT Launch on linux. If I have a list view with drag and drop on a page with vertical scroll, and I scroll the page down from the top (any amount), then try to drag and drop, I'll get the following error:
    Code:
    [ERROR] Uncaught exception escaped
    com.google.gwt.core.client.JavaScriptException: (NS_ERROR_INVALID_POINTER): Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOM3Node.compareDocumentPosition]
     QueryInterface: 
    function QueryInterface() {
        [native code]
    }
    
     result: 2147500035
     initialize: 
    function initialize() {
        [native code]
    }
    
        at com.google.gwt.dom.client.DOMImplMozilla.isOrHasChild(Native Method)
        at com.google.gwt.dom.client.Element$.isOrHasChild$(Element.java:292)
        at com.google.gwt.user.client.DOM.isOrHasChild(DOM.java:960)
        at com.extjs.gxt.ui.client.event.DomEvent.within(DomEvent.java:301)
        at com.extjs.gxt.ui.client.widget.ListView.onMouseOut(ListView.java:607)
        at com.extjs.gxt.ui.client.widget.ListView.onComponentEvent(ListView.java:326)
        at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:663)
        at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
        at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1287)
        at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
    Here's my code:

    package org.gxtforms.client;

    Code:
    import com.extjs.gxt.ui.client.data.BeanModel;
    import com.extjs.gxt.ui.client.data.BeanModelFactory;
    import com.extjs.gxt.ui.client.data.BeanModelLookup;
    import com.extjs.gxt.ui.client.dnd.ListViewDragSource;
    import com.extjs.gxt.ui.client.dnd.ListViewDropTarget;
    import com.extjs.gxt.ui.client.dnd.DND.Feedback;
    import com.extjs.gxt.ui.client.store.ListStore;
    import com.extjs.gxt.ui.client.widget.ContentPanel;
    import com.extjs.gxt.ui.client.widget.LayoutContainer;
    import com.extjs.gxt.ui.client.widget.ListView;
    import com.extjs.gxt.ui.client.widget.layout.FitLayout;
    import com.google.gwt.user.client.Element;
    
    public class ListDnD extends LayoutContainer {
    
        @Override
        protected void onRender(Element parent, int index) {
            super.onRender(parent, index);
            setStyleAttribute("margin", "10px");
            ContentPanel cp = new ContentPanel();
            cp.setHeading("ListView Insert");
            cp.setSize(500, 400);
            cp.setFrame(true);
    //        cp.setLayout(new RowLayout(Orientation.HORIZONTAL));
            cp.setLayout(new FitLayout());
    
            ListView<BeanModel> list1 = new ListView<BeanModel>();
            list1.setDisplayProperty("id");
            ListStore<BeanModel> store = new ListStore<BeanModel>();
    
            BeanModelFactory factory = BeanModelLookup.get().getFactory(GridBean.class);
    
            for (int i = 0; i < 20; i++) {
                GridBean bean = new GridBean(i);
                store.add(factory.createModel(bean));
            }
    
            list1.setStore(store);
    
            new ListViewDragSource(list1);
            ListViewDropTarget target = new ListViewDropTarget(list1);
            target.setAllowSelfAsSource(true);
            target.setFeedback(Feedback.INSERT);
            cp.add(list1);
    
            add(cp);
    
        }
    }

    Any suggestions?

  2. #2

    Default also, the drag-proxy is out of position if I scroll

    Also, I forgot to mention that the drag proxy is out of position if I scroll the page vertically. I figure this is related to the error I mention above. Interestingly, I see this same proxy out of position behavior in Linux firefox (but don't see the error in error console like I do with GWT launch).

    Thanks.

  3. #3

    Default correction about reproducing

    To reproduce, all I have to do is mouseover draggable elements. Have not tested on windows.

  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •