0

滚动条不显示的示例应用程序。在基于约束的布局中使用滚动条有什么明智的方法吗?

<?xml version="1.0" encoding="utf-8"?>

<s:HGroup left="0" right="0" top="0" bottom="0">                
        <s:Scroller left="0" right="0" top="0" bottom="0">
            <s:VGroup>        
                <s:BorderContainer borderColor="0" width="500" height="500"/>
                <s:BorderContainer borderColor="0" width="500" height="500"/>
                <s:BorderContainer borderColor="0" width="500" height="500"/>
            </s:VGroup>
        </s:Scroller>    
</s:HGroup>

4

1 回答 1

0

在“暴力破解”左/右/宽度/高度等每种可能的组合后找到解决方案

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       width="500" height="400"
                       >
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>

       <s:HGroup left="0" right="0" top="0" bottom="0" >
        <s:Scroller width="100%" height="100%">
            <s:VGroup >        
                <s:BorderContainer borderColor="0" width="500" height="500"/>
                <s:BorderContainer borderColor="0" width="500" height="500"/>
                <s:BorderContainer borderColor="0" width="500" height="500"/>
            </s:VGroup>
        </s:Scroller>  
         </s:HGroup>

</s:WindowedApplication>
于 2010-10-08T08:52:35.550 回答