Bug 349301 - [ScrolledComposite] showControl does not work under some constellation
Summary: [ScrolledComposite] showControl does not work under some constellation
Status: ASSIGNED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 06:37 EDT by Ivan Furnadjiev CLA
Modified: 2011-06-15 10:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.