Changeset 19848
- Timestamp:
- 11/30/15 22:44:41 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.js
r19847 r19848 157 157 ccanvas.width(cheight+cheightoffset); 158 158 ccanvas.css({'position':'relative','top':((canvassize-cheight-cheightoffset)/-2).toFixed(2)+'px'}); 159 ccontext = ccanvas .getContext('2d');159 ccontext = ccanvas[0].getContext('2d'); 160 160 /*erase existing colorbar:*/ 161 161 ccontext.clearRect(0,0, cwidth*4, cheight+cheightoffset);
Note:
See TracChangeset
for help on using the changeset viewer.