Skip to content

Commit

Permalink
fixes Preloading progress bar not centered when experiment_width prop…
Browse files Browse the repository at this point in the history
…erty is set in jsPsych.init #1160
  • Loading branch information
jodeleeuw committed Oct 30, 2020
1 parent 71ce126 commit a2b0cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jspsych.js
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,7 @@ jsPsych.pluginAPI = (function() {
var loaded = 0;

if(progress_bar){
var pb_html = "<div id='jspsych-loading-progress-bar-container' style='height: 10px; width: 300px; background-color: #ddd;'>";
var pb_html = "<div id='jspsych-loading-progress-bar-container' style='height: 10px; width: 300px; background-color: #ddd; margin: auto;'>";
pb_html += "<div id='jspsych-loading-progress-bar' style='height: 10px; width: 0%; background-color: #777;'></div>";
pb_html += "</div>";
jsPsych.getDisplayElement().innerHTML = pb_html;
Expand Down

0 comments on commit a2b0cec

Please sign in to comment.