Test for overflow text in basiljs

64 Views Asked by At

I'm new to basiljs and am wondering if it is possible to test whether text is overflowing from a textbox. So I want to write the code to: -create a text box, -drop some text into it, -tests if the text overflows - if so, create another text box and link to the first. - if not, finish.

Is there a way to carry out the test step?

1

There are 1 best solutions below

0
fabianmoronzirfas On BEST ANSWER

Every textframe has a property overflows:

if (myTextFrame.overflows == true){
// link it
}