Skip to content

Commit

Permalink
Merge pull request #249 from flaviolacer/patch-1
Browse files Browse the repository at this point in the history
Working Cell Width (by flaviolacer)
  • Loading branch information
Ziv-Barber authored May 3, 2018
2 parents 4cd7ca9 + 8facc52 commit b1895ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/docxtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ module.exports = {

_getColSpecs: function(cols, opts) {
var self = this;
return cols[0].map(function(val, idx) {
return self._tblGrid(opts);
return cols[0].map(function(col, idx) {
return self._tblGrid(opts, col);
});
},

// TODO
_tblGrid: function(opts) {
_tblGrid: function(opts, col) {
return {
"w:gridCol": {
"@w:w": opts.tableColWidth || "1"
"@w:w": col.opts.cellColWidth || opts.tableColWidth || "1"
}
};
},
Expand Down

0 comments on commit b1895ff

Please sign in to comment.