History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: SDK-14792
Type: Bug Bug
Status: Reopened Reopened
Priority: C C
Assignee: SDK Community
Reporter: Peter deHaan (Adobe)
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Flex SDK

TextArea.textWidth and TextArea.textHeight do not return correct values when text is set in MXML.

Created: 02/26/08 06:40 PM   Updated: 03/27/09 02:56 PM
Component/s: mx: TextArea
Security Level: Public (All JIRA Users )

File Attachments: 1. File main.mxml (0.6 kb)
2. File main.swf (253 kb)


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
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:
Robert Vollmar (Adobe) - [02/29/08 12:05 PM - edited ]
(Flex was not a choice in the list because Flex bugs should be submitted here, in the public bug database.)
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.

Robert Vollmar (Adobe) - [06/24/08 06:27 PM - edited ]
Recommend for 3.0.x.

Joan Lafferty - [10/08/08 12:37 PM ]
Deferred, please try this in the Gumbo FxTextArea

Peter deHaan (Adobe) - [10/10/08 02:18 PM ]
Closing.