-1

如果我在宽度和高度为 10 像素的组内放置宽度和高度为“100%”的边框,则边框看起来大于 10 像素,为什么?

<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>
4

1 回答 1

0

我认为这是因为边框有最小宽度。Border我在我的 Flex 4 版本中没有看到,但是BorderContainer(也许他们最近改名了?)的 minWidth/minHeight 为 112。

于 2010-03-17T14:30:35.507 回答