inputText control – when filled with text, highlight text and drag, top line goes invisible.
Posted on February 8, 2010 | No Comments
Steps to reproduce:
1. Get the mx:Text compont
2. Fill with some text.
3. Run the project
4. Click and all select the text in the component,
5. Drag mouse in side the component to bottom words.
6. you may see, top line of the text invisible, it online amoxil goes top and masked in component.
Actual Results:
Text hidden in top line
Expected Results:
Text should not moved,
I found it very annoying so I made some tests and I think the bug it’s related to the leading style property.
I think the problem is that textField.setActualSize doesn’t consider the leading property I extended where can buy viagra | buy cialis pills | levitra online the Text class to change that function.
It works pretty well on my project.
change Text.as line: 342
textField.setActualSize(unscaledWidth - paddingLeft - paddingRight,
unscaledHeight - paddingTop - paddingBottom);
width:
var leading:Number = getStyle("leading");
textField.setActualSize(unscaledWidth - paddingLeft - paddingRight,
unscaledHeight - paddingTop - paddingBottom + leading);
Comments
Leave a Reply
You must be logged in to post a comment.
Sameera at LinkedIn
