Project

General

Profile

« Previous | Next » 

Revision f24a540a

Added by Patrick Plitzner about 5 years ago

ref #8011 Some layouting

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/search/facet/FilterComposite.java
30 30
        super(parent, style);
31 31
        this.facet = facet;
32 32
        GridDataFactory.fillDefaults().applyTo(this);
33
        setLayout(new GridLayout(2, false));
33
        GridLayout gridLayout = new GridLayout(2, false);
34
        gridLayout.marginHeight = 0;
35
        gridLayout.marginWidth = 0;
36
        gridLayout.horizontalSpacing = 0;
37
        setLayout(gridLayout);
34 38

  
35 39
        btnCheck = new Button(this, SWT.CHECK);
36 40
        btnCheck.addSelectionListener(new SelectionAdapter() {
......
43 47

  
44 48
        Composite content = new Composite(this, SWT.NONE);
45 49
        GridDataFactory.fillDefaults().applyTo(content);
46
        content.setLayout(new GridLayout());
50
        GridLayout gl_content = new GridLayout();
51
        gl_content.horizontalSpacing = 0;
52
        content.setLayout(gl_content);
47 53

  
48 54
        Label label = new Label(content, SWT.NONE);
49 55
        label.setText(facet.getFacet());
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/search/facet/SearchComposite.java
75 75

  
76 76
    private void initFilterList() {
77 77
        filterListComposite = new Composite(filterScrolledComposite, SWT.NONE);
78
        filterListComposite.setLayout(new GridLayout(1, false));
78
        GridLayout gl_filterListComposite = new GridLayout(1, false);
79
        gl_filterListComposite.marginHeight = 0;
80
        gl_filterListComposite.verticalSpacing = 0;
81
        filterListComposite.setLayout(gl_filterListComposite);
79 82
        filterScrolledComposite.setContent(filterListComposite);
80 83
        filterScrolledComposite.setMinSize(filterListComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
81 84
    }

Also available in: Unified diff