Copy link to clipboard
Copied
I have some small text area and some text in it. When textRange.size = 5 (for example) i see this text, but when its bigger (6 pt for example) it hides away. So, I have 2 questions:
1. is there a varaible (or may be a fast way to calculate) that tells me will this text hidden or not ?
2. is there an option (or script variable) to show text lager then my textArea anyway?
I presume you mean overset text, i.e. more than fits into an area.
For a (selected) single line, you can test for it with
alert( selection[0].lines[0].characters.length < selection[0].characters.length );
For ruther details, see Vasily Hall's script.
Copy link to clipboard
Copied
I presume you mean overset text, i.e. more than fits into an area.
For a (selected) single line, you can test for it with
alert( selection[0].lines[0].characters.length < selection[0].characters.length );
For ruther details, see Vasily Hall's script.
Copy link to clipboard
Copied
Yes, i have already found it, thank you! I have several rows in text area, and when textArea.textRange.lines.length != rowsCount, it means that some line is hidden.