smartgwt 2.4 + gwt 2.1.1
I have a ComboBoxItem that has a custom cellformatter, how do I get the mouseover highlight effect to cover the entire cell? see attached pic and code snippet.
pickListProperties = new ListGrid();
pickListProperties.setGenerateClickOnEnter(true);
pickListProperties.setMinHeight(100);
pickListProperties.setAutoFitData(Autofit.VERTICAL);
pickListProperties.setAutoFitMaxHeight(300);
CellFormatter placeFormat = new CellFormatter() {
@Override
public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
PlaceDataType type = PlaceDataType.valueOf(record.getAttribute("type"));
String title = record.getAttribute("title");
String image = record.getAttribute("image");
String styleStr = "font-family:arial;line-height:25px;font-size:13px;white-space:nowrap;overflow:hidden;";
String retStr = "<table>" +
"<tr><td ><span style='" + styleStr + "width:33px;height:25px;float:left'><img width=33 height=25 src=\""+image+"\"><span></td>" +
"<td align='left'><span style='" + styleStr + "width:150px;float:left'>" + title + "<span></td></tr>" +
"</table>";
return retStr; } };
pickListProperties.setCellFormatter(placeFormat);
combobox.setPickListProperties(pickListProperties);
combobox.setPickListHeight(300);
combobox.setPickListWidth(width);
combobox.setEmptyPickListHeight(100);
