fixed bug making appear an empty image below add more div

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/my-vres@132317 82a268e6-3cf1-43bd-a215-b396298e98cf
master
Massimiliano Assante 8 years ago
parent 33c695c28c
commit 2dba8b8350

@ -1,10 +0,0 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<g:HTMLPanel>
<div class="headerTitle">
My Virtual Research Environments
</div>
</g:HTMLPanel>
</ui:UiBinder>

@ -41,13 +41,14 @@ public class ClickableVRE extends HTML {
} else {
name = (vre.getName().length() > 15) ? vre.getName().substring(0, 13) + ".." : vre.getName();
html = "<div class=\"vreCaption\">" +name + "</div>";
html += "<div style=\"display: table; text-align:center; width: 100%; height: 75px;\">" +
"<span style=\"vertical-align:middle; display: table-cell;\"><img style=\"width: " + imageWidth + "px;\" src=\"" +imageUrl + "\" /></span>" +
"</div>";
}
imageWidth = WIDTH - 12;
imageUrl = vre.getImageURL();
this.setTitle("Enter");
html += "<div style=\"display: table; text-align:center; width: 100%; height: 75px;\">" +
"<span style=\"vertical-align:middle; display: table-cell;\"><img style=\"width: " + imageWidth + "px;\" src=\"" +imageUrl + "\" /></span>" +
"</div>";
setHTML(html);
setStyleName("vreButton");

Loading…
Cancel
Save