Project

General

Profile

Bug #1250

strange behaviour with drag and drop + changing widget parent

Added by Gabor Vitez over 10 years ago. Updated about 10 years ago.

Status:
InProgress
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
04/21/2012
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I tried to write a simple app, where I drag a widget from one location to another, and upon successful drop, the widget's parent gets changed to the new location.

If the setDraggable(java.lang.String mimeType) is used, after dragging the widget to a location which does not accept that mime type, the dragged widget can end up in a place which should not be possible.

If setDraggable(java.lang.String mimeType, WWidget dragWidget, boolean isDragWidgetOnly) version is used, everything works fine; after the invalid drag-and-drop operation the dragged widget stays properly at the original location.

I've attached the source code (JRuby), and a screenshot of the strange behaviour. Both firefox and chrome exhibit the same behaviour.

best,

Gabor


Files

DragandDrop.rb (2.51 KB) DragandDrop.rb the source Gabor Vitez, 04/21/2012 01:44 PM
badbehav.png (68.1 KB) badbehav.png screenshot Gabor Vitez, 04/21/2012 01:44 PM
#1

Updated by Koen Deforche about 10 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche

Also available in: Atom PDF