Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349301

Summary: [ScrolledComposite] showControl does not work under some constellation
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 1.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2011-06-14 06:37:43 EDT
Reproducible with FileDialog demo. Remove the workaround in FileDialog#createAddSelectorButton - replace:
--------
uploadPanel.setEnabled( false );
uploadPanel.setVisible( false );
uploadScroller.getDisplay().timerExec( 10, new Runnable() {
  public void run() {
    uploadPanel.setEnabled( true );
    uploadPanel.setVisible( true );
    uploadScroller.showControl( addFileSelectorButton );
  }
} );
--------
with:
uploadScroller.showControl( addFileSelectorButton );
--------
Run FileDialog demo from the incubator. Click on "Add multiple files" button - dialog is opened. Click on the "+" button to add more files. When the new upload file is added the ScrolledComposite should scroll to make the plus button visible again, but it does not work. This happens, because ScrolledComposite#setVBarSelection has been rendered before the new content and updated dimensions.
Comment 1 Tim Buschtoens CLA 2011-06-14 07:40:49 EDT
Changing the order in which the widgets changes are rendered would not solve the problem. What counts is when the changes are done in DOM.