Sg2.9
visibleRange returns only the...
Recent RSS
visibleRange returns only the first character
From:  vertex
Date:  27. May 2015, 13:19

Hello,

the following example creates an text area where only the subtext 'Text which will' is visible.

var bottomLeft = new Point(10, 10);
var size = new Size(50, 50);
var rectangle = new Rectangle(bottomLeft, size);
var areaText = new AreaText(rectangle);
areaText.content = 'Text which will appear within the path';

console.log(areaText.visibleRange.content); // prints only 'T'

I've expected, that areaText.visibleRange will be the visible subtext, but regardless of the text box size, it returns only the first character.

I need this to check, if the whole text in an text area is visible.

Ciao Olli

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
The Allineatorium 15.05.14