Question

I've some code to create item to add listitem dojo in my worklight app:

  var n = domConstruct.create("div", {innerHTML:     
                            "<div class='pName'><h4>"+hotDeal[i].title+"</h4></div>" +
                            "<div class='pNumber'>"+hotDeal[i].desc+"</div>"+
                            '<a href="'+hotDeal[i].url+'">Read more</a>'+
                            "</div>"});
                        var icon = hotDeal[i].img;      

                                 var policyInit = {icon:icon};
                                 policyInit["class"] = "mblVariableHeight";
                                var policyItem = new dojox.mobile.ListItem(policyInit,n);
                                viewWishlist.addChild(policyItem);

My problem is icon of item is too big ( hotDeal[i].img is image url),i want to resize icon of item in listitem dojox mobile.How i can do that ? Thanks for any help

Était-ce utile?

La solution

resize manually the image in the images folder

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top