| Summary: | Drag and Drop inside a gallery | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Volker Renneberg <ritchie> | ||||
| Component: | Nebula | Assignee: | Nicolas Richeton <nicolas.richeton> | ||||
| Status: | CLOSED INVALID | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | trevor | ||||
| Version: | unspecified | Keywords: | plan | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Volker Renneberg
Created attachment 97549 [details]
subclass of GalleryRenderer showing findNearestFollowingItem() for DnD
I found this pretty easy to add to my application. The biggest issue was finding where the item was dropped. I subclassed the renderer I use and added a method to help do that findNearestFollowingItem(). It is a bit rough, but works for me. The only other issue I have is trying to keep the scroll position of the gallery stable after it is refreshed. In my code I just update my model and then clear and refresh the gallery which I created as SWT.VIRTUAL. As I only have a maximum of about 200 items this appears instantaneous to me. This bug does not have a target milestone assigned and is automatically closed as part of the 2.3.0 release cleanup. It could be that this bug is accidentally closed for which we apologize. If this bug is still relevant, please re-open and set a target milestone. |