strange behaviour with drag and drop + changing widget parent
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.