PennController for IBEX › Forums › FAQ / Tips › DashedSentence in a PennController trial › Reply To: DashedSentence in a PennController trial
June 9, 2020 at 11:05 am
#5605
Jeremy
Keymaster
Hi Max,
One solution to control text wrapping would be to manually insert linebreaks in the text, which was (one of) the original goal(s) when I posted this code.
Assuming you will always name your element SampleItem across all your trials, another solution would be to add something like this to a file PennController.css in Aesthetics:
.SampleItem { max-width: 40vw; }
Or you could modify the code of the function to directly play with the Text element’s aesthetics there:
[ newText(name,showWord(words)).css("max-width","40vw").print() ],
Jeremy