Revision 86f09e7b
Added by Andreas Kohlbecker about 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/common/GeoLocationField.java | ||
---|---|---|
25 | 25 |
import com.vaadin.ui.CssLayout; |
26 | 26 |
import com.vaadin.ui.GridLayout; |
27 | 27 |
import com.vaadin.ui.Label; |
28 |
import com.vaadin.ui.ListSelect;
|
|
28 |
import com.vaadin.ui.NativeSelect;
|
|
29 | 29 |
import com.vaadin.ui.TextField; |
30 | 30 |
|
31 | 31 |
import eu.etaxonomy.cdm.model.location.Point; |
... | ... | |
54 | 54 |
private TextField latitudeField = new LongLatField("Latitude", Axis.LATITUDE); |
55 | 55 |
private Label longLatParsed = new Label(); |
56 | 56 |
private TextField errorRadiusField = new TextFieldNFix("Error radius (m)"); |
57 |
private ListSelect referenceSystemSelect;
|
|
57 |
private NativeSelect referenceSystemSelect;
|
|
58 | 58 |
|
59 | 59 |
private LMap map = new LMap(); |
60 | 60 |
private LMarker mapMarker = new LMarker(); |
... | ... | |
109 | 109 |
|
110 | 110 |
errorRadiusField.addValueChangeListener( e -> updateMap()); |
111 | 111 |
|
112 |
referenceSystemSelect = new ListSelect("Reference system");
|
|
112 |
referenceSystemSelect = new NativeSelect("Reference system");
|
|
113 | 113 |
referenceSystemSelect.setNullSelectionAllowed(false); |
114 |
referenceSystemSelect.setRows(1); |
|
115 | 114 |
referenceSystemSelect.setWidth(100, Unit.PERCENTAGE); |
116 | 115 |
|
117 | 116 |
GridLayout root = new GridLayout(); |
... | ... | |
224 | 223 |
return fieldGroup; |
225 | 224 |
} |
226 | 225 |
|
227 |
public ListSelect getReferenceSystemSelect() {
|
|
226 |
public NativeSelect getReferenceSystemSelect() {
|
|
228 | 227 |
return referenceSystemSelect; |
229 | 228 |
} |
230 | 229 |
|
Also available in: Unified diff
fix #8184 using NativeSelect instead of ListSelect to avoid circumvent a bug in the ListSelect which affects the Chrome browser