PennController for IBEX › Forums › Support › centering scale when options have different lengths › Reply To: centering scale when options have different lengths
Hi Jeremy,
Yes, I’ve tried using settings.center and it doesn’t work. Check out this code:
newText(“Hello my dear dear friend, how are you doing on this very pleasant day?”)
.print()
,
newImage(“bad”, “no.png”)
,
newImage(“good”, “ya.png”)
,
newText(“left label”, “Baaaaaaaaaaaad”)
.settings.before( getImage(“bad”) )
,
newText(“right label”, “Good”)
.settings.after( getImage(“good”) )
,
newScale(“judgment”, 2)
.settings.before( getText(“left label”) )
.settings.after( getText(“right label”) )
.settings.center()
.print()
.wait()
I added a bunch of letters to left label and now you’ll see that the scale is no longer centered. This is the issue I am having in my experiment. Sometimes the left label has more characters than the right label and vice versa. Is there a way to fix this? It’s minor but since the options change each time, I’d prefer for the positioning to not be distracting to participants.
Thanks!
-Cassandra