Skip to content

Commit

Permalink
Adding scrollbars to Nodegroup Store View
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcok committed Aug 3, 2023
1 parent 1e0a2ad commit d56c444
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.action.*;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.FormAttachment;
Expand Down Expand Up @@ -118,7 +119,10 @@ public void createPartControl(Composite parent) {

final Display display = Display.getCurrent();

final Composite composite = new Composite(parent, SWT.NONE);
final ScrolledComposite sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
final Composite composite = new Composite(sc, SWT.NONE);
sc.setContent(composite);

GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.verticalSpacing = 10;
Expand Down

0 comments on commit d56c444

Please sign in to comment.