Skip to content
Discussion options

You must be logged in to vote

Hi @DominiqueMakowski

The not-quite-on-the-edge problem might be due to the jspsych.css default of making the display 95% of the width of the screen. (This default was to fix a legacy Internet Explorer bug, and we are planning to switch to a more intuitive 100% in version 8.) You can override this by setting a CSS rule:

<head>
<style>
.jspsych-content { max-width: 100%; }
</style>
</head>

For placing this in the upper-corner regardless of trial type, here's an idea but it is a bit hacky and I haven't tested it.

In the on_load method for any trial you can add a <div> element with position: absolute; top: 0; left: 0. Then you can clear this in the on_finish method for the trial.

const trial = 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DominiqueMakowski
Comment options

Answer selected by DominiqueMakowski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2697 on July 11, 2022 02:24.