开发者

why is the Border bigger than the Group in this case?

if I place a Border with width and height of "100%" inside a开发者_Go百科 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>


I think it's because the Border has a minimum width. I don't see Border in my version of Flex 4, but BorderContainer (maybe they changed the name recently?) has a minWidth/minHeight of 112.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜