| Summary: | [Tree] setSelection does not scroll on creation and on collapsed first level tree items | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Lutz Suhrbier <l.suhrbier> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ivan | ||||
| Version: | 2.1 | ||||||
| Target Milestone: | 2.3 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=419982 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Lutz Suhrbier
Lutz, please check your Tree (parent Composite) GridLayout data. Make sure that the Tree (TreeViewer) is not left to it's preferred size. Ivan, could you please clarify a little bit what you want to suggest me ? Do you mean, that should use the hint() function to set a fixed layout size for the treeviewer ? If so, why can I not leave it to its preferred size ? What size should I set, if not the preferred size of the treeviewer ? I am a little bit confused, even more as your tip bug in #419982 suggested to set both grab() values to true, which finally means, that the tree will size to its preferred size, or not ? best regards Lutz Hi Lutz, sorry for the late response - I was in vacation. In order to avoid broken layout on page reload remove the layout from the ExpandBar. Setting layout on ExpandBar does not make sense both in SWT and RAP. About the scrolling issue you are right. There is still bug related to set top item index and create/expand item in the same server response. As item is created/expanded on the client after applying the top item index it's possible the top index to be ignored (invalid at that point - bigger than actual visible items). Fixed with change https://git.eclipse.org/r/20503 |