Hi Isomorphic,
retesting this one, I noticed that the valueIcons in this sample (v11.1p_2018-01-25, SelectItem "A combobox with icons" with the flags) look blurred. This is due to the <span> being 20x20, while the icon files are 16px.
I fixed this with "valueIconSize: 16," in the sample source, but then there is a very visible gap between icon and country name. Actually the gap is also there without the sample-addition, so I think something is wrong here.
Afterwards I checked this also in my application where I have a Country-ComboBoxItem with the following pickListFields (so as img-tag, not as span-tag):
It is also happening there, so I assume something with the positioning is indeed not OK.
Best regards
Blama
retesting this one, I noticed that the valueIcons in this sample (v11.1p_2018-01-25, SelectItem "A combobox with icons" with the flags) look blurred. This is due to the <span> being 20x20, while the icon files are 16px.
I fixed this with "valueIconSize: 16," in the sample source, but then there is a very visible gap between icon and country name. Actually the gap is also there without the sample-addition, so I think something is wrong here.
Afterwards I checked this also in my application where I have a Country-ComboBoxItem with the following pickListFields (so as img-tag, not as span-tag):
Code:
ListGridField shortnameLGF = new ListGridField(shortnameLGFName); ListGridFieldCountryflag countrycodeLGF = new ListGridFieldCountryflag(DatasourceFieldEnum.T_COUNTRY__ISO_3166_1_ALPHA_2.getValue(), i18n.flag(), 25); public final class ListGridFieldCountryflag extends ListGridField { public ListGridFieldCountryflag(String name, String title, int width) { super(name, title, width); setAlign(Alignment.CENTER); setType(ListGridFieldType.IMAGE); setImageURLPrefix("[SKINIMG]LT/flags/"); setImageURLSuffix(".png"); setImageSize(16); setCanGroupBy(false); setCanSort(false); } }
Best regards
Blama
Comment