PennController for IBEX › Forums › Support › centering scale when options have different lengths › Reply To: centering scale when options have different lengths
Hi Cassandra,
What is the problem exactly? The radio buttons always appear centered on my screen when I test the script on the document page you gave the link to, even if I use a 2-point scale instead of a 5-point scale and use "aBada" and "aGooda" instead of the "Bad" and "Good" as labels.
Admittedly, you might need to use settings.center depending on your aesthetics configuration. For example, using the test page from the documentation, the scale will left-align to the left-edge of the content box of the page, but settings.center takes care of it. Here’s a script if you want to try it (uncomment the settings.center line):
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", "Bad") .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()
Jeremy