tega
tega

Reputation: 3

Test for overflow text in basiljs

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?

Upvotes: 0

Views: 64

Answers (1)

fabianmoronzirfas
fabianmoronzirfas

Reputation: 4131

Every textframe has a property overflows:

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

Upvotes: 0

Related Questions