I have a hover component that contains an image (got from the database). In chrome, the component is growing accordingly to show the whole image, which is good.
But in firefox I see the screenshot attached.
Why isn't this working in firefox and how to correct it ?
Using 6.0-p20160519, chrome 51.0.2704.103 and firefox 47.0.1
Testcase:
But in firefox I see the screenshot attached.
Why isn't this working in firefox and how to correct it ?
Using 6.0-p20160519, chrome 51.0.2704.103 and firefox 47.0.1
Testcase:
Code:
public void onModuleLoad() { Canvas canvas = new Canvas(); final ListGrid countryGrid = new ListGrid(); countryGrid.setWidth(500); countryGrid.setHeight(224); countryGrid.setShowAllRecords(true); countryGrid.setSelectionType(SelectionStyle.SINGLE); countryGrid.setCanHover(true); countryGrid.setHoverCustomizer(new HoverCustomizer() { @Override public String hoverHTML(Object value, ListGridRecord record, int rowNum, int colNum) { String imgStyle = "padding-top: 6px; padding-bottom: 8px;"; String imgUrl = "https://upload.wikimedia.org/wikipedia/commons/8/84/Namibie_Etosha_Elephant_02.JPG"; return ("<span style=\"font-weight:bold\">" + "Title" + "</span><br />" + "<img height=\"200\" style=\"" + imgStyle + "\" src=\"" + imgUrl + "\"><br />"); } }); ListGridField nameField = new ListGridField("countryName", "Country"); ListGridField capitalField = new ListGridField("capital", "Capital"); ListGridField continentField = new ListGridField("continent", "Continent"); countryGrid.setFields(nameField, capitalField, continentField); countryGrid.setData(CountrySampleData.getRecords()); canvas.addChild(countryGrid); canvas.draw(); }
Comment