Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    11
    Vote Rating
    0
    javajunkie is on a distinguished road

      0  

    Default [FNR] ListView indicates dragging when no drag took place

    [FNR] ListView indicates dragging when no drag took place


    When a ListView contains more elements than fit in the view (a scrollbar is visible) and one or more elements inside the ListView are selected.
    The user scrolls using the bar holding down mousekey, then letting loose the mousekey inside the ListView the Dragging statustext is shown, actually having startet a DragEvent for some reason. Pressing leftmousekey on a DropTarget finalizes the the DND operation and drops the selected elements from the ListView.
    Worse yet: if its a Move-Operation the dropped element can be dropped multiple time. The selection on the DragSource doesnt get unselected - its removed from the list, but still available for the Dnd management.

    I have noticed the statustext indication on Duallists before, now i found this occurs in normal Listviews too.

    OS: Windows7 Professional (64bit)
    GXT: 2.2.0
    IE8
    Hostedmode & Webmode

    (seems to work on firefox 3.6)

    Code:
    public class Test implements EntryPoint {
        public void onModuleLoad() {
            Window window = new Window();// 
            window.setSize(800, 600);
            window.setLayout(new FillLayout());
            window.add(new MainPanel());
            window.layout();
            RootPanel.get().add(window);
        }
        
        class MainPanel extends HorizontalPanel {
            public MainPanel() {                        
                final String DISPLAY_PROPERTY = "name";
                ListStore<ModelData> liststore = new ListStore<ModelData>();
                final ListView<ModelData> list = new ListView<ModelData>(liststore);
                list.setSize(200, 100);
                list.setDisplayProperty(DISPLAY_PROPERTY);
                ListViewDragSource _listDragSource = new ListViewDragSource(list);
                for (int i = 0; i<20; i++) {
                    ModelData model = new BaseModelData();
                    model.set(DISPLAY_PROPERTY, Math.random());
                    liststore.add(model);
                }
                ListStore<ModelData> liststore2 = new ListStore<ModelData>();
                final ListView<ModelData> list2 = new ListView<ModelData>(liststore2);
                list2.setSize(200, 100);
                list2.setDisplayProperty(DISPLAY_PROPERTY);
                ListViewDropTarget _listDropTarget = new ListViewDropTarget(list2);
                add(list);
                add(list2);
            }
        }
    }

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This is an issue in all DragSources. I will reply here when it got fixed in SVN. Thanks for the report.

  3. #3
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN as of revision 2239

  4. #4
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    867
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    Sven. I noticed that the same happened when you try to resize a Grid column.
    A drag indicator was shown.

    Do you know if that was also fixed?

  5. #5
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I tried to reproduce that but was not able to. Maybe you can also try it out against #2239

  6. #6
    Ext User
    Join Date
    Jun 2010
    Posts
    11
    Vote Rating
    0
    javajunkie is on a distinguished road

      0  

    Default


    Quote Originally Posted by sven View Post
    Fixed in SVN as of revision 2239
    Doesnt work for me in rev. #2247. Drag indicator remains. Fixed _ONLY_ in 2239?

    Had trouble building though.
    I used GWT 2.0.4 and changed buildscript to ignore nonpresence of gwt-dev-windows.jar; build.properties seems outdated (gxt.version=2.1.0 ?).

  7. #7
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Is it possible you checkout trunk? If you look at the history of the revision 2239 you will see that this change was made in "releases/2.2". You also wont have your buildproblems than.

  8. #8
    Ext User
    Join Date
    Jun 2010
    Posts
    11
    Vote Rating
    0
    javajunkie is on a distinguished road

      0  

    Default


    sry; works fine.
    thx.

Similar Threads

  1. [FNR] 2.1.1 - ListView change record bug
    By votch in forum Ext GWT: Bugs (2.x)
    Replies: 2
    Last Post: 12 Mar 2010, 11:39 PM
  2. drag node out of place after page scroll in IE
    By spbroom in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 8 Oct 2009, 8:08 AM
  3. ListView - Selecting items by clicking and dragging the mouse
    By Algiano in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 14 Sep 2009, 8:51 AM
  4. How to place ContentPanel as a column inside Grid or ListView?
    By kishorekadiri in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 1 Jul 2009, 6:51 AM
  5. [FNR] [1.2.4] Listview unhandled exception when mouseout
    By srichardson in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 30 Jun 2009, 3:06 AM

Thread Participants: 2

Tags for this Thread