I am using a composite with fillLayout as inner composite and ScrollComposite as outer composite .
I have fixed the size of outer composite. When I have scrollbar in outer composite but no scroll bar in inner composite then I am getting complete information when I export the composite data as png. But issue arises when information being displayed is too large as a result there is scrollbar for inner composite also.
This is just a snippet of what is done:
FillLayout layout = new FillLayout(SWT.HORIZONTAL);
final ScrolledComposite scrolledComposite = new ScrolledComposite(getContainer(), SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setExpandVertical(true);
final Composite composite = new Composite(scrolledComposite, SWT.NONE);
composite.setLayout(layout);
GraphViewer gvTree = new GraphViewer(composite, SWT.NONE);
<Code to populate data in the tree>
gvTree.setLayoutAlgorithm(treeLayout,true);
scrolledComposite.setContent(composite);
scrolledComposite.setMinSize(1000,composite.getBounds().height);