Changeset 20357
- Timestamp:
- 03/25/16 15:18:27 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.js
r20025 r20357 73 73 if (options.exist('colorbarcanvasid')&&!ccanvashtml.hasOwnProperty('init')){ 74 74 //store actual colobar size 75 cwidth = ccanvas.width(); 76 cheight = ccanvas.height(); 75 cwidth = ccanvashtml.clientWidth; 76 cheight = ccanvashtml.clientHeight; 77 ccanvas.attr({width:cwidth+cheightoffset*4,height:cheight+cheightoffset*2}).css({width:cwidth+cheightoffset*4,height:cheight+cheightoffset*2}); 77 78 //get html object instead of jqurey object to modify height/width to accomodate labels 78 ccanvashtml.width = ccanvas.width()+cheightoffset*6;79 ccanvashtml.height = cheight+cheightoffset*2;80 79 ccanvashtml.cwidth = cwidth; 81 80 ccanvashtml.cheight = cheight; … … 146 145 if (options.exist('colorbarcanvasid')&&!ccanvashtml.hasOwnProperty('init')){ 147 146 //store actual colobar size 148 cwidth = ccanvas .width();149 cheight = ccanvas .height();147 cwidth = ccanvashtml.clientWidth; 148 cheight = ccanvashtml.clientHeight; 150 149 //get html object instead of jqurey object to modify height/width to accomodate labels 151 150 ccanvashtml.width = cwidth+cheightoffset*6;
Note:
See TracChangeset
for help on using the changeset viewer.