<commit_before>package spark.skins.mobile
{
    import spark.components.ActionBar;
    import spark.components.ButtonBar;
    import spark.components.Group;
    import spark.components.ViewNavigator;
    
    public class ViewNavigatorSkin extends SliderSkin
    {
        //--------------------------------------------------------------------------
        //
        //  Constructor
        //
        //--------------------------------------------------------------------------
        public function ViewNavigatorSkin()
        {
            super();
        }
        
        //--------------------------------------------------------------------------
        //
        //  Variables
        //
        //--------------------------------------------------------------------------
        public var hostComponent:ViewNavigator;
        public var contentGroup:Group;
        public var actionBar:ActionBar;
        public var tabBar:ButtonBar;
        
        //--------------------------------------------------------------------------
        //
        // Methods
        //
        //--------------------------------------------------------------------------
        
        /**
         * 
         */
        override protected function createChildren():void
        {
            contentGroup = new Group();
            
            tabBar = new ButtonBar();
            tabBar.requireSelection = true;
            tabBar.height = 40;
            
            actionBar = new ActionBar();
            
            addChild(contentGroup);
            addChild(actionBar);
            addChild(tabBar);
            
            tabBar.dataProvider = hostComponent;
        }
        
        /**
         * 
         */
        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
        {
            var top:Number = 0;
            var bottom:Number = unscaledHeight;
            
            if (tabBar.includeInLayout)
            {
                var tabBarHeight:Number = tabBar.getExplicitOrMeasuredHeight();
                tabBar.setLayoutBoundsSize(unscaledWidth, tabBarHeight);
                tabBar.setLayoutBoundsPosition(0, top);
                
                top += tabBarHeight;
            }
            
            if (actionBar.includeInLayout)
            {
                var actionBarHeight:Number = actionBar.getExplicitOrMeasuredHeight();
                
                actionBar.setLayoutBoundsSize(unscaledWidth, actionBarHeight);
                actionBar.setLayoutBoundsPosition(0, top);
                
                top += actionBarHeight;
            }
            
			if (contentGroup.includeInLayout)
			{
	            contentGroup.setLayoutBoundsPosition(0, top);
	            contentGroup.setLayoutBoundsSize(unscaledWidth, bottom - top);
			}
        }
    }
}<commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after>package spark.skins.mobile
{
    import spark.components.ActionBar;
    import spark.components.ButtonBar;
    import spark.components.Group;
    import spark.components.ViewNavigator;
    
    public class ViewNavigatorSkin extends SliderSkin
    {
        //--------------------------------------------------------------------------
        //
        //  Constructor
        //
        //--------------------------------------------------------------------------
        public function ViewNavigatorSkin()
        {
            super();
        }
        
        //--------------------------------------------------------------------------
        //
        //  Variables
        //
        //--------------------------------------------------------------------------
        public var hostComponent:ViewNavigator;
        public var contentGroup:Group;
        public var actionBar:ActionBar;
        public var tabBar:ButtonBar;
        
        //--------------------------------------------------------------------------
        //
        // Methods
        //
        //--------------------------------------------------------------------------
        
        /**
         * 
         */
        override protected function createChildren():void
        {
            contentGroup = new Group();
            contentGroup.minHeight = 0;
			
            tabBar = new ButtonBar();
            tabBar.requireSelection = true;
            tabBar.height = 40;
            
            actionBar = new ActionBar();
            
            addChild(contentGroup);
            addChild(actionBar);
            addChild(tabBar);
            
            tabBar.dataProvider = hostComponent;
        }
        
        /**
         * 
         */
        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
        {
            var top:Number = 0;
            var bottom:Number = unscaledHeight;
            
            if (tabBar.includeInLayout)
            {
                var tabBarHeight:Number = tabBar.getExplicitOrMeasuredHeight();
                tabBar.setLayoutBoundsSize(unscaledWidth, tabBarHeight);
                tabBar.setLayoutBoundsPosition(0, top);
                
                top += tabBarHeight;
            }
            
            if (actionBar.includeInLayout)
            {
                var actionBarHeight:Number = actionBar.getExplicitOrMeasuredHeight();
                
                actionBar.setLayoutBoundsSize(unscaledWidth, actionBarHeight);
                actionBar.setLayoutBoundsPosition(0, top);
                
                top += actionBarHeight;
            }
            
			if (contentGroup.includeInLayout)
			{
				var contentGroupHeight:Number = bottom - top;
				
				if (contentGroupHeight < contentGroup.minHeight)
					contentGroupHeight = contentGroup.minHeight;
				
	            contentGroup.setLayoutBoundsPosition(0, top);
	            contentGroup.setLayoutBoundsSize(unscaledWidth, contentGroupHeight);
			}
        }
    }
}
{'fraction_non_alphanumeric': 0.21358415182287332, 'fraction_numerical': 0.002164141834526386, 'mean_word_length': 0.9462261094914156, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3753225', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1247, 'n_words': 209}