Invisible (hidden) text in small textArea

New Here ,
Apr 16, 2021 Apr 16, 2021

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? 


TOPICS
How to, Scripting, Type

Views

105

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Enthusiast , Apr 17, 2021 Apr 17, 2021
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.

Likes

Translate

Translate
Enthusiast ,
Apr 17, 2021 Apr 17, 2021

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.

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 17, 2021 Apr 17, 2021

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines