Changeset 19848


Ignore:
Timestamp:
11/30/15 22:44:41 (9 years ago)
Author:
dlcheng
Message:

CHG: Adressing colorbar context error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/applyoptions.js

    r19847 r19848  
    157157                                ccanvas.width(cheight+cheightoffset);   
    158158                                ccanvas.css({'position':'relative','top':((canvassize-cheight-cheightoffset)/-2).toFixed(2)+'px'});
    159                                 ccontext = ccanvas.getContext('2d');
     159                                ccontext = ccanvas[0].getContext('2d');
    160160                                /*erase existing colorbar:*/
    161161                                ccontext.clearRect(0,0, cwidth*4, cheight+cheightoffset);
Note: See TracChangeset for help on using the changeset viewer.