| Summary: | Missing ScrolledComposite.setShowFocusedControl() and default behavior inconsistent with SWT | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Robert Enyedi <renyedi> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 1.2 | ||
| Target Milestone: | 1.3 M2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Robert Enyedi
Created attachment 144388 [details]
RWT sample - initial state
Created attachment 144389 [details]
RWT sample - initial state
Created attachment 144390 [details]
RWT sample - after clicking a tree item
Notice that the header has disappeared due to automatic scrolling.
Created attachment 144391 [details]
SWT sample - initial state
Created attachment 144392 [details]
SWT sample - after clicking a tree item
Notice that by default no scrolling happens in the root scrolled composite.
Created attachment 144393 [details] SWT sample - after clicking a tree item with ScrolledComposite.setShowFocusedControl(true) Notice the similar behavior with https://bugs.eclipse.org/bugs/attachment.cgi?id=144390 Created attachment 144395 [details]
RWT sample - view containing the tree widget
Created attachment 144396 [details]
RWT sample - entry point declaring the scrolled composite
Comment on attachment 144389 [details]
RWT sample - initial state
Duplicate
Steps to reproduce (both in RWT and SWT samples): 1. Start the application (initial states shown in scrolledcomposite-RWT-state1.png and scrolledcomposite-SWT-state1.png) 2. Click on a tree item 3. In the RWT sample the root scrolled composite is automatically scrolled so that the header label disappears (scrolledcomposite-RWT-state2.png). 4. Notice that in SWT the root scrolled composite does no scrolling at all (scrolledcomposite-SWT-state2.png). However, if in ScrollTestShell.java you uncomment line 35 (scrolledComposite.setShowFocusedControl(true);), the behavior will match that of RWT (scrolledcomposite-SWT-state3.png). But this is NOT the default behavior. ScrolledComposite#setShowFocusedControl(boolean) is implemented. Now there should be no difference with SWT. |