Skip to content

Commit

Permalink
Fixing border params
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmr13 committed Jul 15, 2016
1 parent fdad07a commit 24469ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SheetsTemplater.gs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var QuickDrive = function (DriveApp, SpreadsheetApp, newConfig) {
range.setFontColor(cellProperties.fontColor);
}
if (cellProperties.borderStyle && cellProperties.borderColor) {
range.setBorder(true, true, true, true, cellProperties.borderColor, SpreadsheetApp.BorderStyle[cellProperties.borderStyle]);
range.setBorder(true, true, true, true, true, true, cellProperties.borderColor, SpreadsheetApp.BorderStyle[cellProperties.borderStyle]);
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/mock/SpreadsheetApp/Range.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var Range = function (myMatrix) {
this.setFontColor = function (color) {
setSomeValue(color, 'FontColor');
};
this.setBorder = function (top, left, bottom, right, color, style) {
this.setBorder = function (top, left, bottom, right, vertical, horizontal, color, style) {
setSomeValue(color, 'BorderColor');
setSomeValue(style, 'BorderStyle');
};
Expand Down

0 comments on commit 24469ab

Please sign in to comment.