2010-09-30 25 views
0

Exemple d'application dans laquelle le défileur n'apparaît pas. Y a-t-il une façon saine d'utiliser un défileur dans une disposition basée sur les contraintes?Le défilement imbriqué ne fonctionne pas

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

Répondre

0

trouvé la solution après "brute force" toutes les combinaisons possibles de gauche/droite/WIDT/hauteur etc

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