| Summary: | Shared area becomes destroyed after splitting vertically and then splitting the bottom part horizontally | ||
|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> |
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> |
| Status: | VERIFIED FIXED | QA Contact: | Eric Moffatt <emoffatt> |
| Severity: | critical | ||
| Priority: | P3 | ||
| Version: | 1.0 | ||
| Target Milestone: | 4.1 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Remy Suen
Note that this is similar to bug 325146 but not entirely because the area will come back in that scenario whereas it won't in this case. I reproduced it on I20101216-1305 so I guess it's not a new bug. There doesn't seem to be anything fishy about the model itself. The 'toBeRendered' attribute of all the relevant elements appear to be 'true'. 'visible' is also 'true'. It seems the area's child (MPartSashContainer) has no widget. (In reply to comment #4) > It seems the area's child (MPartSashContainer) has no widget. This doesn't actually seem to be directly related... I tried rolling back the changes for bug 333489 but it didn't help. Created attachment 187437 [details]
PartRenderingEngineTests tests patch v1
Not entirely clear if this is the problem but there is an issue where altering the hierarchy of nested MPartSashContainers can cause widgets to be inadvertently disposed. This is akin to the code that the CleanupAddon performs.
Created attachment 187780 [details]
Specifically handle unwrapping one sash container containing another
This is an interim fix...
The base cause is the 'optimized' sash layout mechanics which cause all children (at whatever level) to have the 'top' sash container's composite as their parent.
Here the scenario resulted in the 'top' sash container being unwrapped by the cleanup addon and it's dispose caused everything else to go away.
Note that the above patch works but a solution in the rendering setup would be better I think... Committed in >20110126. Applied the patch. This is better but it's specific to the Cleanup Addon and does not address the failing test case. That fix has to go into the SashRenderer since it's its 'optimization' that is causing the issues. Once we have the test scenario working we should re-visit the change in the cleanup addon. This was broken (again) in I20110511-2200. It was a regression introduced by the SplitDropHandler not removing the element if it was dragging a stack (causing problems when moving a stack to split either itself or another stack in the same PSC as the dragged stack was... Created attachment 195614 [details]
Patch to clean up stack splitting
Committed in >20110513. Applied the patch. Created attachment 195619 [details]
Change the code to allow a stack to 'outerDock' using itself
This is the scenario where the user has moved the Outline view into the shared area. We still need to allow the code to recognize that it wants to move it back out of the area (even though the cursor is over the itself).
Committed in >20110513. Applied the patch. This appears to have been fixed by the last round of DnD changes... Verified in I20110604-2201 |