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:
parent
941134cb45
commit
201fbb5064
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue