Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alan Byrne on Jun 03, 2008 01:21
open dhtmlx forum
Can you control the size of images displayed on the drop down using the dhtmlxCombo

I am creating a combo programatically (not using XML) and adding images to each option (using _addOption). The images I am using a from a set used by the application elsewhere and a really a little too large to be used in the combo. Is there any way to get the combo control to specify the width and/or height of the image.
Answer posted by Support on Jun 03, 2008 05:30
You can define global css rule , which will be applied to those images
    .dhx_combo_list img{
       width: NNpx;
       height: NNpx;
    }


Or hardcode the size of images in dhtmlxcombo_extra.js , line 22
    html += '<img style="float:left; width:NNpx; height:NNpx;" src="'+this.img_src+'" />';