text.setAlignVert('top'); not implemented

This is more of a placeholder.

I would like to use either

text.setAlignVert(‘top’);
or
text.alignVert=‘top’;

However, according to https://psychopy.github.io/psychojs/visual_TextStim.js.html vertical alignment and orientation aren’t yet implemented. Am I looking in the right place for this information?

Hi @wakecarter, with reference to the screenshots below, I believe setOri() and setAlignVert() should work as expected for text stimuli at least, x

Thank you. The confirmation was all I needed to investigate why the screen was blank – the top aligned text was off the bottom of the screen due to hard returns I’d added to put other text off screen to fix the width of a dynamic text element. My workaround is no longer needed and my code is now that bit simpler.

1 Like