[
https://issues.apache.org/jira/browse/FLEX-27468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866790#comment-13866790
]
Alex Harui commented on FLEX-27468:
-----------------------------------
getBounds is a low-level Flash API. It is not guaranteed to conform to the
component's visible bounds as the component's implementation may contain
invisible stuff.
> The TextArea's bounds are reported as starting at local coordinates of
> -18,-18 instead of 0,0!
> ----------------------------------------------------------------------------------------------
>
> Key: FLEX-27468
> URL: https://issues.apache.org/jira/browse/FLEX-27468
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: TextArea
> Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easytest
> Attachments: FLEX-27468.ZIP
>
>
> Steps to reproduce:
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> minHeight="600" creationComplete="init()">
> <fx:Script>
> private function init(event:Event=null):void {
> var bounds:Rectangle = test2.getBounds(test2);
> trace(bounds); //reports (x=-18, y=-18, w=206, h=169)
> }
> </fx:Script>
> <s:Group width="100%" height="100%">
> <s:TextArea id="test2">
> </s:TextArea>
> </s:Group>
> </s:Application>
>
> Actual Results:
> (x=-18, y=-18, w=206, h=169)
>
> Expected Results:
> (x=0, y=0, w=206, h=169)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)