Reply To: Prevent long stimuli from splitting in two lines

PennController for IBEX Forums Support Prevent long stimuli from splitting in two lines Reply To: Prevent long stimuli from splitting in two lines

#8133
Jeremy
Keymaster

Hi Daria,

You can remove .css("white-space","nowrap") and add this to Aesthetics/global_main.css instead:

.PennController-nowrap .FlashSentence-flashed-sentence, .PennController-nowrap .DashedSentence-sentence {
    white-space: nowrap;
}

This will apply the CSS rule to the sentence in your controller as long as you name the element "nowrap":

newController("nowrap", "AcceptabilityJudgment", {
    s: row.sentence,
    as: ["1", "2", "3", "4", "5", "6", "7"],
    presentAsScale: true,
    leftComment: "Плохо", rightComment: "Хорошо",
    timeout: 10000
})
    .center()
    .print()
    .wait()
    .log()
    .remove()

Jeremy