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

Was it helpful?

Solution

resize manually the image in the images folder

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top