| Summary: | IAE thrown when dropping first view on itself | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> | ||||||
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> | ||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | Eric Moffatt <emoffatt> | ||||||
| Severity: | major | ||||||||
| Priority: | P3 | Flags: | emoffatt:
review+
|
||||||
| Version: | 1.0 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Remy Suen
Created attachment 197166 [details]
Prevent the 'dropIndex' from ever going below zero
This is a 'point fix', I'll revisit the logic post-4.1.
Remy, not the best solution but it works, take a look please. Created attachment 197172 [details]
StackDropAgent patch v2
The conditional change looks good to me but it doesn't seem like the getDropIndex(DnDInfo) change is necessary so I think we should leave that method as-is.
(In reply to comment #3) > Created attachment 197172 [details] > StackDropAgent patch v2 Eric, please look at this and commit if you're fine with it. Remy's patch is better...I'm going to commit this just to avoid the IAE but won't mark this defect as fixed yet because there's still odd behavior when dropping an item onto itself (if it's to the left side of the item then the tab item moves left when it should not...). Committed in >20110601. Applied Remy's version... Removing outdated target milestone. This issue has been fixed for some time, including the bad drop behavior... |