Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

BhaskerChari
BhaskerChari
Offline

Badges

Badges
1

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts

Posts
1

Discussions

Discussions
0

Questions

Questions
1

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by BhaskerChari
Customize the badges you want to showcase on your profile
Re: Number of lines in a Field of type Text with Javascript - Adobe LiveCycle 19-05-2010
Hi,You can use below function to calculate the no of lines in the Text field dynamically.import mx.controls.textClasses.TextRange; import flash.text.TextField; private function calculateNoOfLines():int { var tr2:TextRange = new TextRange(_text, true, 0,_text.text.length-1); tr2.text = _text.text; _text.invalidateSize(); _text.invalidateDisplayList(); _text.invalidateProperties(); var contentTextField:TextField = _text.mx_internal::getTextField(); var nLines:int = contentTextField.numLines; var l...

Views

173

Likes

0

Replies

0