jsPsych icon indicating copy to clipboard operation
jsPsych copied to clipboard

jsPsychSurvey: showProgresssBar: "aboveHeader" issue

Open DominiqueMakowski opened this issue 1 year ago • 3 comments

@becky-gilbert first thanks again for your own on survey, it's amazing :)

Just wanted to flag an issue where showProgresssBar is displayed "belowHeader" when set to "aboveHeader". Could be a CSS styling issue

See below, despite showProgressBar: "aboveHeader", it's below:

image

var questionnaire_hexaco18 = {
            type: jsPsychSurvey,
            survey_json: {
                title: "About your personality",
                description:
                    "Please answer the following questions based on how accurately each statement describes you in general.",
                showQuestionNumbers: false,
                goNextPageAutomatic: true,
                showProgressBar: "aboveHeader",
                pages: hexaco18(),
            },
            data: {
                screen: "questionnaire_hexaco18",
            },
        }

DominiqueMakowski avatar Jun 16 '24 07:06 DominiqueMakowski

This might be an issue with surveyJS. You can check its official demo here, where you can see that selecting belowHeader or aboveHeader does not make a difference.

Shaobin-Jiang avatar Jun 17 '24 04:06 Shaobin-Jiang

Thanks for reporting this @DominiqueMakowski and for looking into it @Shaobin-Jiang!

It does look to me like the "aboveHeader" and "belowHeader" values are working as they should in the SurveyJS demo (see screenshots). It's possible that it wasn't working before and is now, as those demos just grab the latest versions.

Screenshot 2024-07-03 at 2 47 51 PM Screenshot 2024-07-03 at 2 47 43 PM

I'll try to get a fix out for this ASAP (probably next week).

becky-gilbert avatar Jul 03 '24 21:07 becky-gilbert

Oops I closed too eagerly, actually this is still valid, sorry

DominiqueMakowski avatar Sep 10 '24 15:09 DominiqueMakowski