Create icon url before calling set image

- icon url passed inside `setImage` function was wrong
- line spacing icons are not correctly
- this patch will correct the url before setImage
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ie733c79c4edae404d934953eaea20632bc18f8da
This commit is contained in:
Darshan-upadhyay1110 2024-03-21 16:02:46 +05:30 committed by Szymon Kłos
parent 941134cb45
commit 201fbb5064

View file

@ -40,7 +40,7 @@ JSDialog.comboboxEntry = function (parentContainer, data, builder) {
if (data.icon) {
var icon = L.DomUtil.create('img', 'ui-combobox-icon', entry);
builder._isStringCloseToURL(data.icon) ? icon.src = data.icon : L.LOUtil.setImage(icon, data.icon, builder.map);
builder._isStringCloseToURL(data.icon) ? icon.src = data.icon : L.LOUtil.setImage(icon, builder._createIconURL(data.icon), builder.map);
}
if (data.hint) {