Project

General

Profile

Revision 64998378

ID64998378214481c1793d60bf42a34b8ce9e7f5db
Parent 6d457a88
Child 0d60fc16

Added by Patrick Plitzner almost 3 years ago

ref #6990 Fix resize of search bar

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/search/SearchBar.java
31 31
import org.eclipse.swt.events.SelectionEvent;
32 32
import org.eclipse.swt.graphics.Point;
33 33
import org.eclipse.swt.graphics.Rectangle;
34
import org.eclipse.swt.layout.RowData;
34 35
import org.eclipse.swt.layout.RowLayout;
35 36
import org.eclipse.swt.widgets.Composite;
36 37
import org.eclipse.swt.widgets.Control;
......
142 143
		text_search.setForeground(AbstractUtility.getColor(Resources.SEARCH_VIEW_FOREGROUND));
143 144
		text_search.setText(defaultText);
144 145
        text_search.setEnabled(false);
146
        RowData layoutData = new RowData();
147
        layoutData.width = 150;
148
        text_search.setLayoutData(layoutData);
145 149

  
146 150
		addTextListeners();
147 151
	}
......
186 190
	private void createLayout(Composite composite) {
187 191
		final RowLayout layout = new RowLayout();
188 192
		layout.wrap = false;
189
		layout.pack = true;
190
		layout.justify = true;
193
		layout.pack = false;
194
		layout.justify = false;
191 195
		layout.type = SWT.HORIZONTAL;
192
		layout.marginLeft = 0;
196
		layout.marginLeft = 5;
193 197
		layout.marginTop = 0;
194
		layout.marginRight = 0;
198
		layout.marginRight = 5;
195 199
		layout.marginBottom = 0;
196 200
		layout.spacing = 0;
197 201
		composite.setLayout(layout);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)