The display height of the item.
<instruct> <likert> <openended> <sliderTrial> <caption> <checkboxes> <dropdown> <image> <listbox> <radioButtons> <slider> <textbox> <button> <clearScreen> <clock> <html> <picture> <shape> <text> <video>
object.name.height
Read/Write
extent
The height can be specified in percentages, pixels, or points. This property is useful to dynamically adjust the size of stimuli throughout runtime.
The following displays the value of height in a text stimulus:
<text myText>
/ items= ("height = <% text.foo.height %>")
</text>
The following displays the value of height in an instruction page:
<page myPage>
height = <% instruct.height %>
</page>
The following demonstrates how to adjust the size of a feedback image depending on performance (captured in values.acc) via the 'onprepare' attribute.
<picture feedback>
/ onPrepare = {
if (values.acc){
this.feedback.height = 80%; //'this' standing in for picture.feedback
} else {
this.feeback.height = 20%;
}
}
/ items = ( "posFeedback.png ", "negFeedback.png ")
/ select = values.selectFeedbackStim
</picture>