Skip to content

Commit

Permalink
grid text left justified #261
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhao committed Jan 28, 2021
1 parent 79b0c9e commit 48869d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function buildHtml(grid_obj) {

let displayif = question.displayif ? ` displayif="${question.displayif}"` : '';

grid_table_body += `<div id="${question.id}" ${displayif} gridrow class="d-flex align-items-stretch"><div class="col d-flex align-items-center justify-content-center border">${question.question_text}</div>`;
grid_table_body += `<div id="${question.id}" ${displayif} gridrow class="d-flex align-items-stretch"><div class="col d-flex align-items-left justify-content-left border">${question.question_text}</div>`;
grid_obj.responses.forEach((resp, resp_indx) => {
grid_table_body += `<div class="col-1 d-flex align-items-center justify-content-center border"><input gridcell type="${resp.type}" name="${question.id}" id="${question.id}_${resp_indx}" value="${resp.value}" grid class="grid-input-element show-button"/></div>`;
});
Expand Down

0 comments on commit 48869d0

Please sign in to comment.