Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import org.eclipse.swt.accessibility.AccessibleAdapter;
import org.eclipse.swt.accessibility.AccessibleEvent;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Point;
Expand Down Expand Up @@ -729,9 +730,18 @@ public void subTask(String name) {
* @return Composite
*/
private Composite createPageContainer(Composite parent) {
Composite result = new Composite(parent, SWT.NULL);
result.setLayout(pageContainerLayout);
return result;
ScrolledComposite scrolled = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL);
scrolled.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
scrolled.setExpandHorizontal(true);
scrolled.setExpandVertical(true);
Composite content = new Composite(scrolled, SWT.NULL);
content.setLayout(pageContainerLayout);
scrolled.setContent(content);
content.addListener(SWT.Resize, e -> {
scrolled.setMinSize(content.computeSize(SWT.DEFAULT, SWT.DEFAULT));
});

return content;
}

/**
Expand Down
Loading