So I have a borderContainer and have a text in it and the text is always moved 2 - 4 pixels to the left, I need it perfectly centered.
code
<s:BorderContainer id="box" width="100%" borderWeight="0"
backgroundColor="0xffffff" borderVisible="false"
backgroundAlpha="1" horizontalCenter="1" textAlign="center">
<mx:Text id="text" fontSize="10" textAlign="center"
width="100%"/>
</s:BorderContainer>
I have tried everything to the text horizontalCenter and verticalCenter = 0 , 1 , middle , center also tried removing 100 % doing all sort of things online but just can't get it to center perfectly :) any help would be appreciated
Note: the text will be numbers like $19.99 or similar :)
Can it help you?
I have added a Rect to show you the real border.