OS: macOS 26.3.1 (25D2128)
PsychoPy version: 2026.1.0
Installation: Standard Standalone
Run online: Yes
What are you trying to achieve?
I want to show long texts in scrollable containers of different sizes in different Builder routines.
What did you try?
I am using TextBox2 components in multiple routines.
Both text boxes use overflow=‘scroll’, but they have different sizes.
For example:
-
Routine 1: large scrollable TextBox2
-
Routine 2: another scrollable TextBox2 with a different height
Expected behaviour
Each TextBox2 should clip/scroll only within its own box size.
Observed behaviour
The clipping region of one TextBox2 seems to affect the other one across routines.
More specifically, the clipping of the TextBox2 in the second routine seems to determine the visible/clipped area of the TextBox2 in the first routine.
This happens even though the text boxes are in different routines and have different sizes.
Relevant thread I found
Textbox sizing / clipped viewable information
Screenshots
Screenshot 1: first routine
Screenshot 2: second routine
Question
Is this a known TextBox2 issue across routines?
Is there a reliable way to reset the clipping/scroll state between routines?
Help is very much appreciated! ![]()
deb1_body_text_2 = visual.TextBox2(
win, text='...',
ori=0.0, pos=(-0.03, -0.04), draggable=False, units='height', letterHeight=0.025,
size=(1.5, 0.8), borderWidth=2.0,
...
padding=0.03, alignment='top-left',
anchor='center', overflow='scroll',
fillColor=None, borderColor='black',
...
name='deb1_body_text_2',
)
information_text_2 = visual.TextBox2(
win, text='...',
ori=0.0, pos=(-0.03, -0.04), draggable=False, units='height', letterHeight=0.03,
size=(1.5, 0.5), borderWidth=2.0,
...
padding=0.03, alignment='top-left',
anchor='center', overflow='scroll',
fillColor=None, borderColor='black',
...
name='information_text_2',
)



