Mercurial > repos > mzeidler > virana_main
changeset 36:e4b30166e311 draft
Uploaded
author | mzeidler |
---|---|
date | Mon, 30 Sep 2013 19:55:07 -0400 |
parents | 1a06678bafa6 |
children | f325e9116e21 |
files | jqBarGraph.2.1.js |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/jqBarGraph.2.1.js Mon Sep 30 13:34:10 2013 -0400 +++ b/jqBarGraph.2.1.js Mon Sep 30 19:55:07 2013 -0400 @@ -479,7 +479,7 @@ hei=$('.files'+elid).height(); hei=parseInt(hei)+10; hei=hei>400? hei=400 : hei; - $('.files'+elid).css({'height': curr_hei+'px', 'width':'915px','position':'relative', 'overflow' : 'auto','background-color':'rgb(223, 229, 249)', 'border':'2px solid silver', 'display':'block' }).animate({'height':hei+'px'}, 1000); + $('.files'+elid).css({'height': curr_hei+'px', 'width':wi+'px','position':'relative', 'overflow' : 'auto','background-color':'rgb(223, 229, 249)', 'border':'2px solid silver', 'display':'block' }).animate({'height':hei+'px'}, 1000); } }; @@ -489,9 +489,9 @@ div.innerHTML=""; out="<div><H3>Consensus Image for Region "+region+"</H3></div>"; newImg= new Image(); - newImg=consensus_image - wid=newImg.naturalWidth - hig=newImg.naturalHeight + newImg.src=consensus_image; + wid=newImg.naturalWidth; + hig=newImg.naturalHeight; out+="<img id='image_file"+elid+"' src="+consensus_image+" alt="+consensus_image+" style='width:"+wid+";height:"+hig+";'>"; $(div).append(out)