[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Scrollable Composite for multipage editor
|
You should not set a layout on the ScrolledComposite - this will just
cause a lot of flashing when you resize.
What is happening is first the layout will try to position the children
and then the ScrolledComposite will re-position the children. Hence the
flashing.
I think the code that fixed your problem was :
GridLayout myLayout = new GridLayout();
myLayout.numColumns = 2;
cp.setLayout(myLayout);
In the future, I will probably change the class ScrolledComposite to not
allow users to set the layout because this just causes problems so please
don't rely on it.