Mercurial > repos > mzeidler > virana_main
changeset 37:f325e9116e21 draft
Uploaded
author | mzeidler |
---|---|
date | Mon, 30 Sep 2013 20:18:24 -0400 |
parents | e4b30166e311 |
children | 1d063cb5ff47 |
files | jqBarGraph.2.1.js |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/jqBarGraph.2.1.js Mon Sep 30 19:55:07 2013 -0400 +++ b/jqBarGraph.2.1.js Mon Sep 30 20:18:24 2013 -0400 @@ -490,8 +490,13 @@ out="<div><H3>Consensus Image for Region "+region+"</H3></div>"; newImg= new Image(); newImg.src=consensus_image; - wid=newImg.naturalWidth; - hig=newImg.naturalHeight; + wid=0; + hig=0; + newImg.onload = function(){ + wid=this.width; + hig=this.height; + }; + out+="<img id='image_file"+elid+"' src="+consensus_image+" alt="+consensus_image+" style='width:"+wid+";height:"+hig+";'>"; $(div).append(out)