Stack with localToGlobal
I have this code (see id=search):
<s:NavigatorContent id="clients" width="100%" height="100%" >
<s:layout>
<s:VerticalLayout gap="0"
paddingBottom="0"
paddingLeft="0"
paddingRight="0"
paddingTop="0"/>
</s:layout>
<s:SkinnableContainer backgroundColor="0xF3F3F3" width="100%" height="40">
<s:layout>
<s:HorizontalLayout verticalAlign="middle"
paddingLeft="3"
paddingBottom="2"
paddingTop="2"
paddingRight="3"/>
</s:layout>
<s:Button id="addClientBtn"
label="{resourceManager.getString(
'myResources','workplace.addClientBtn')}"
icon="{Images.add}"
click="{addClient()}"
doubleClickEnabled="true"
doubleClick="{openHelp('NewClient')}"/>
<s:Spacer width="100%" />
<components:SearchClients id="search"/>
</s:SkinnableContainer>
</s:NavigatorContent>
In creationComplete event ->
search.localToGlobal( new Point(search.x,search.y))
Output returns
(x=0, y=32)
But visually I see that this output is wrong. Should be something like ~ (x=300, y=32)
Can someone help?