Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form layout gets mangled in PsychoPy 2023.2.2 to PsychoJS export but not in 2022.1.4 #584

Open
fuimsr opened this issue Oct 11, 2023 · 1 comment

Comments

@fuimsr
Copy link

fuimsr commented Oct 11, 2023

Hey friendly community,

I’ve tried implementing an online experiment with the PsychoPy 2023.2.2 builder. It contains a form, which unfortunately is mangled as soon as I try it in the local browser:
PsychoPy:
PsychoPy
PsychoJS:
PsychoJS

Interestingly enough, this issue is not there in older versions of PsychoPy, here's the PsychoJS version for 2022.1.4:
Capture2

Here’s the minimal experiment to reproduce the issue:
form_issue.zip

I would be in to help debugging/fixing this if there is a possibility to do this.

@fuimsr
Copy link
Author

fuimsr commented Oct 11, 2023

Found the culprit, it is this commit:

a1effe6#diff-3cb0e9acf2c1d3de7596f8be62a7bff3be8f42f505e2e65f5fe8b683100097a6

Changing the lines in psychojs-2023.2.2.js

from:
this._win._stimsContainer.position.x + this._leftEdge_px + 2,
this._win._stimsContainer.position.y + this._bottomEdge_px + 2,

to:
this._win._rootContainer.position.x + this._leftEdge_px + 2,
this._win._rootContainer.position.y + this._bottomEdge_px + 2,

brings back the full layout:

grafik

Edit: updated screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant