Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16938

iOS: Font property doesn't work for Picker and PickerColumn

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: Release 4.0.0
    • Component/s: iOS
    • Environment:

      Appc-Studio:3.3.0.201405080918
      sdk:3.3.0.v20140508135704
      acs:1.0.14
      alloy:1.4.0-dev
      npm:1.3.2
      titanium:3.3.0-dev
      titanium-code-processor:1.1.1
      xcode:5.1.1
      Device:Iphone5s(v7.1.1)

    • Story Points:
      5
    • Sprint:
      2014 Sprint 23 SDK

      Description

      Steps to reproduce:
      1. Copy Paste the code in app.js and run the app on iOS device.

      Expected Result:
      1. Must observe the difference in font size than normal.

      Actual Result:
      1. No differences appear. Font Size appears the same.

      Working fine for Android. See the issue TIMOB-14007

      var win = Ti.UI.createWindow({
        backgroundColor: 'white',
        exitOnClose: true,
        fullscreen: false,
        title: 'Use picker to make selection'
      });
       
      var fruit = [ 'Bananas', 'Grapes', 'Blueberries', 'Strawberries' ];
      var color = [ 'blue', 'red', 'yellow', 'white' ];
       
      var column1 = Ti.UI.createPickerColumn({font: {fontSize: 40}});
       
      for(var i=0, ilen=fruit.length; i<ilen; i++){
        var row = Ti.UI.createPickerRow({
          title: fruit[i]
        });
        column1.addRow(row);
      }
       
      var column2 = Ti.UI.createPickerColumn();
       
      for(var i=0, ilen=color.length; i<ilen; i++){
        var row = Ti.UI.createPickerRow({
          title: color[i]
        });
        column2.addRow(row);
      }
       
      var picker = Ti.UI.createPicker({
        columns: [column1, column2],
        selectionIndicator: true,
        useSpinner: true, // required in order to use multi-column pickers with Android
        top:50
      });
       
      function pickerDefaults(obj){
        // on iOS, must be after picker has been rendered
        picker.setSelectedRow(0, 2, false);
        picker.setSelectedRow(1, 3, false);
      }
       
      win.add(picker);
      win.open();
      

      Test case for Date Picker:

      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow({
        layout: 'vertical'
      });
        
      var picker = Ti.UI.createPicker({
        type:Ti.UI.PICKER_TYPE_DATE,
        minDate:new Date(2009,0,1),
        maxDate:new Date(2014,11,31),
        value:new Date(2014,3,12),
        font: {fontSize: 40},
        top:50,
        useSpinner: true
      });
        
      win.add(picker);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                pagarwal Priya Agarwal
                Reviewer:
                Jon Alter
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code