| Summary: | [Tree] Expand fails when some do not have icons | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Paul Bilnoski <bilnoski> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | tbuschto | ||||
| Version: | 1.5 | ||||||
| Target Milestone: | 1.5 M7 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Paul Bilnoski
Created attachment 213711 [details]
Java file of a ViewPart to demonstrate the problem
Strange... I can't expand the first two children 2.1 and 2.2, but with 2.3 and 2.4 it works. For the third root unable to expand 3.1, but all others are working 3.2, 3.3 and 3.4. The problem is in TreeRow.js#_renderCellImage which does not update the cellImage element bounds in case of missing image. Thus, the cell image element (div) appears on the top of expand symbol element (it keeps the old bounds from the previous rendered item). As a result, TreeRow.js#getTargetIdentifier returns wrong value and expand event is not fired. Good catch. The solution should be to always update the bounds in the tree-column (image and label), even if there is no image/text. Image and label DOM elements bounds are now updated, even if there is no image/text. This is done only for the tree column. |