Reply To: change the sittings of screen width.

PennController for IBEX Forums Support change the sittings of screen width. Reply To: change the sittings of screen width.

#7531
Jeremy
Keymaster

Hi,

One option would be to identify the longest text you have and create a Canvas element of a size that would fit it, then print that Canvas element scaled to fit the page. The text will probably appear a little small on some screens, but that’s the only way you can make sure it will fit on a single line. A width of 115em seemed to display fine:

newCanvas("container", "115em", "5em")
    .scaling("page")
    .print("center at 50vw","auto")
,
newController("DashedSentence", {s: row.sentence})
    .print( "center at 50%", 0, getCanvas("container") )

Jeremy