     private function getLongestLabel(list:IList):Object
     {
         var idx:int = -1;
-        var maxWidth:int = 0;
+        var maxWidth:Number = 0;
         var labelWidth:Number;
         for (var i:int = 0; i < list.length; i++)
         {

        return false;
    }
    
    // identify the dateList item that has the longest width in DATE_AND_TIME mode    
    private function findLongestDateItem():Object
    {
        updateDayMonthDateFormatter();
        
        dateTimeFormatter.dateTimePattern =  dayMonthDateFormatter.getMonthPattern();
        
        var longestDateItemObj:Object = dateList.dataProvider.getItemAt(0);
        var longestMonth:int = 0;
        var labelWidth:Number = -1;
        var maxWidth:int = 0;
        var dateStr:String;
        dateObj.date = 1;
        
        // find the longest month
        for (var month:int = 0; month < 12; month++)
        {
            dateObj.month = month;
            labelWidth = measureText(dateTimeFormatter.format(dateObj)).width;
            if (labelWidth > maxWidth)
            {

    // the NumberFormatter to identify the longest yearList item in DATE mode
    private var numberFormatter:NumberFormatter;
    
    // caching the longest digit (the array value) between index and 9, inclusive, and refresh when locale changes
    private var longestDigitArray:Array = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
    
    private var dateObj:Date = new Date();
    private var use24HourTime:Boolean;
    
    // store the longest dateList item and updates only when locale changes
    private var longestDateItem:Object;
    private var longestYearItem:Object;
    
