-
21 Sep 2010 7:55 AM #1
[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); } } }
-
21 Sep 2010 8:31 AM #2
This is an issue in all DragSources. I will reply here when it got fixed in SVN. Thanks for the report.
-
21 Sep 2010 9:57 AM #3
Fixed in SVN as of revision 2239
-
22 Sep 2010 1:50 AM #4
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?
-
22 Sep 2010 2:05 AM #5
I tried to reproduce that but was not able to. Maybe you can also try it out against #2239
-
30 Sep 2010 5:40 AM #6
-
30 Sep 2010 5:44 AM #7
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.
-
30 Sep 2010 6:20 AM #8
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FNR] 2.1.1 - ListView change record bug
By votch in forum Ext GWT: Bugs (2.x)Replies: 2Last Post: 12 Mar 2010, 11:39 PM -
drag node out of place after page scroll in IE
By spbroom in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 8 Oct 2009, 8:08 AM -
ListView - Selecting items by clicking and dragging the mouse
By Algiano in forum Ext GWT: DiscussionReplies: 2Last Post: 14 Sep 2009, 8:51 AM -
How to place ContentPanel as a column inside Grid or ListView?
By kishorekadiri in forum Ext GWT: DiscussionReplies: 2Last Post: 1 Jul 2009, 6:51 AM -
[FNR] [1.2.4] Listview unhandled exception when mouseout
By srichardson in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 30 Jun 2009, 3:06 AM


Reply With Quote