Fixed SynopticTable width
This commit is contained in:
parent
83a0a9b08f
commit
9e5baee0f6
|
@ -494,7 +494,10 @@ public class SynopticTableAnnualPanelResult {
|
||||||
startY : yPos,
|
startY : yPos,
|
||||||
pageBreak : 'auto',
|
pageBreak : 'auto',
|
||||||
bodyStyles : {
|
bodyStyles : {
|
||||||
fontSize : 9
|
fontSize : 7
|
||||||
|
},
|
||||||
|
bodyStyles : {
|
||||||
|
minCellWidth : 16
|
||||||
},
|
},
|
||||||
//didDrawCell : checkColor,
|
//didDrawCell : checkColor,
|
||||||
didParseCell : checkColor,
|
didParseCell : checkColor,
|
||||||
|
|
|
@ -425,11 +425,11 @@ public class SynopticTablePanelResult {
|
||||||
if (typeof data.cell.raw !== 'undefined'
|
if (typeof data.cell.raw !== 'undefined'
|
||||||
&& data.cell.raw !== null) {
|
&& data.cell.raw !== null) {
|
||||||
console.log(data.cell.raw.innerHTML);
|
console.log(data.cell.raw.innerHTML);
|
||||||
|
|
||||||
var good = 'background-color: limegreen;';
|
var good = 'background-color: limegreen;';
|
||||||
var normal = 'background-color: yellow;';
|
var normal = 'background-color: yellow;';
|
||||||
var bad = 'background-color: red;';
|
var bad = 'background-color: red;';
|
||||||
|
|
||||||
if (data.cell.raw.innerHTML
|
if (data.cell.raw.innerHTML
|
||||||
.indexOf(good) >= 0) {
|
.indexOf(good) >= 0) {
|
||||||
console.log('good');
|
console.log('good');
|
||||||
|
@ -489,7 +489,10 @@ public class SynopticTablePanelResult {
|
||||||
startY : yPos,
|
startY : yPos,
|
||||||
pageBreak : 'auto',
|
pageBreak : 'auto',
|
||||||
bodyStyles : {
|
bodyStyles : {
|
||||||
fontSize : 9
|
fontSize : 7
|
||||||
|
},
|
||||||
|
bodyStyles : {
|
||||||
|
minCellWidth : 16
|
||||||
},
|
},
|
||||||
//didDrawCell : checkColor,
|
//didDrawCell : checkColor,
|
||||||
didParseCell : checkColor,
|
didParseCell : checkColor,
|
||||||
|
|
Loading…
Reference in New Issue