why is the Border bigger than the Group in this case?
Posted
by user273895
on Stack Overflow
See other posts from Stack Overflow
or by user273895
Published on 2010-03-17T12:51:58Z
Indexed on
2010/03/17
13:21 UTC
Read the original article
Hit count: 179
flex
if I place a Border with width and height of "100%" inside a Group with width and height of 10 pixels the Border looks bigger than 10 pixels, why?
<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/halo"
>
<s:Group width="10" height="10">
<s:Border width="100%" height="100%" borderColor="#FF0000"/>
</s:Group>
</s:Application>
© Stack Overflow or respective owner