[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Composite Added; Resize Fails

All,

Can any on point me toward a solution?

My RCP app works until I add a composite to one of the views, then everything works until I resize. It acts as if its hung and seems to stop painting. The views within the app are all still functional. There is no editor, just views. I can min/max the app. I cannot rezize it. If I restart the app, it works properly with the newly added composite. Everything including resize works--until I add another composite.

The composite in question is being added to a ScrolledComposite. It is added as the result of closing a modal dialog that is based on jface's Dialog.

When the dialog closes, I re-compute sizes and pack as follows:

obc = Composite being added.
comp = The required Composite inside the ScrolledComposite.
scpOutbreaks = The ScrolledComposite.
parent = The composite that contains ScrolledComposite and a host of other widgets.


Code snippet:

obc.setSize(obc.computeSize(SWT.DEFAULT, SWT.DEFAULT, true));
comp.setSize(comp.computeSize(SWT.DEFAULT, SWT.DEFAULT, true)); scpOutbreaks.setSize(scpOutbreaks.computeSize(SWT.DEFAULT, SWT.DEFAULT, true));
parent.setSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT, true));
parent.pack();