• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

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
Scripting , Type

Views

474

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

Guide , 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.

 

Votes

Translate

Translate
Adobe
Guide ,
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.

 

Votes

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.

Votes

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