ScrollBar doesn't appear until resize [message #1767610] |
Fri, 07 July 2017 14:40 |
Umut Kazan Messages: 25 Registered: February 2017 |
Junior Member |
|
|
Hello,
I use AbstractListComposite for the list view and AbstractDetailComposite for the details part in my properties tab. What should i do? Tried to modify code that creates detail composite, here is that method
@SuppressWarnings(
{ "rawtypes" })
@Override
public AbstractDetailComposite createDetailComposite(Class eClass, Composite parent, int style)
{
AbstractDetailComposite composite = new ResourceDetailComposite(parent, SWT.NONE, parentObject);
composite.setTitle(Messages.translateKey_resourceDetails);
((ResourceDetailComposite) composite).setScenarioParams((ScenarioParametersImpl) this.parentObject);
// revalidateLayout(composite);
// try
// {
// ScrolledComposite sc = .........
//
// sc.setAlwaysShowScrollBars(true);
//
// sc.setExpandVertical(true);
//
// sc.setFocus();
//
// sc.addMouseWheelListener(new MouseWheelListener()
// {
//
// @Override
// public void mouseScrolled(MouseEvent e)
// {
//
// int height = sc.getClientArea().height;
// sc.setMinSize(parent.computeSize(height, SWT.DEFAULT));
// }
// });
//
// sc.getVerticalBar().setIncrement(20);
// }
// catch (Exception e)
// {
// // if page opened in dialog box, proceed as nothing has happened.
// }
return composite;
}
Also attached the images. First image shows the error, you can see the element at the bottom of the composite, and second image shows the composite with the scrollbar after resize.
Umut
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04068 seconds