Auto-fit full width

This commit is contained in:
Jesús Ángel González 2018-06-29 13:28:32 +02:00 committed by Javier Castro
parent 162b0f7f28
commit 08fceb5d02

View File

@ -96,10 +96,13 @@ export default class WazuhReportingCtrl {
-1 :
0;
TimSort.sort(rows, sortFunction);
const widths = Array(table.columns.length).fill('*');
full_body.push(table.columns, ...rows);
this.dd.content.push({
fontSize:8,
table: {
widths,
body: full_body
},
layout: 'lightHorizontalLines'