
|
If you were logged in you would be able to see more operations.
|
|
|
Flex SDK
Created: 02/26/08 06:40 PM
Updated: 03/27/09 02:56 PM
|
|
| Component/s: |
mx: TextArea
|
|
Security Level:
|
Public
(All JIRA Users
)
|
|
| Severity: |
Usability Issue
|
| Reproducibility: |
Every Time
|
| Discoverability: |
Medium
|
| Found in Version: |
SDK Flex 3 (Released)
|
| Milestone: |
SDK Community Fix Candidates
|
| Affected OS(s): |
All OS Platforms
- All
|
| Steps to Reproduce: |
Steps to reproduce bug:
- create a new Flex app
- add a TextArea control
- size the TextArea control to 50 px wide by 200 px high
- doubleclick on the TextArea control and type some text (at least one hundred chars)
- add a button to the app
- add a click handler for the button
- in the click handler check the textWidth and textHeight of the TextArea control (trace them out)
- run the app
- click on the button to check the textWidth and textHeight Properties
Results:
The values returned in the trace are not accurate.
Expected results:
Accurate results. Validation should have already happened (since the text is rendered on the screen)
Also repros if:
you set the "TextArea.text" property at runtime, call validateNow on the TextArea and then check textWidth and textHeight.
The only time the correct values are returned is if:
- you type something in the TextArea control at runtime and then check the values
- you set the htmlText property programmatically, call validateNow, and then check them
Steps to reproduce bug:
- create a new Flex app
- add a TextArea control
- size the TextArea control to 50 px wide by 200 px high
- doubleclick on the TextArea control and type some text (at least one hundred chars)
- add a button to the app
- add a click handler for the button
- in the click handler check the textWidth and textHeight of the TextArea control (trace them out)
- run the app
- click on the button to check the textWidth and textHeight Properties
Results:
The values returned in the trace are not accurate.
Expected results:
Accurate results. Validation should have already happened (since the text is rendered on the screen)
Also repros if:
you set the "TextArea.text" property at runtime, call validateNow on the TextArea and then check textWidth and textHeight.
The only time the correct values are returned is if:
- you type something in the TextArea control at runtime and then check the values
- you set the htmlText property programmatically, call validateNow, and then check them
|
| Language Found: |
English
|
| Bugbase Id: |
none
|
| Triaged: |
Yes
|
| Regression: |
No
|
| QA Owner: |
Robert Vollmar (Adobe)
|
| Participants: |
Joan Lafferty, Peter deHaan (Adobe), Robert Vollmar (Adobe) and SDK Community
|
|
Sub-Tasks:
|
All
|
Open
|
|
| Sub-Task Progress: |
|
|
|
All
|
Comments
|
|
Sort Order:
|
|
I've uploaded a bug file and sample source. This occurs because the text is being set in MXML. If you set the text on creationComplete, it works ok, so that could be considered a workaround. Able to reproduce in 2.0.1 and 3.0. We should fix this.