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

iOS: Picker is not being visible if Picker Column added with height and width as “Ti.UI.SIZE”

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.4.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Description

      Picker is not being visible if Picker Column added with height and width as “Ti.UI.SIZE”
      But works fine on Android.
      Not a regression since not working on 3.3.0.GA also

      Steps to reproduce:
      1. Copy paste the code given below and run the app.
      2. Comment line no 17,18 and run the app again

      Expected Result:
      1.Picker must be visible.
      2.Picker must be visible.

      Actual Result:
      1. Picker is not visible.
      2. Picker is visible.

      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow({
        layout: 'vertical'
      });
        
      var picker = Ti.UI.createPicker({
        top:50,
        useSpinner: false,
        font: {fontSize: 40, fontFamily:'Helvetica', fontStyle:'italic'},  
      });
      picker.selectionIndicator = true;
        
      var fruit = [ 'Bananas', 'Strawberries', 'Mangos', 'Grapes' ];
        
      var column1 = Ti.UI.createPickerColumn({
          font: {fontSize: 40},
          height : Ti.UI.SIZE, // on commenting this and below line picker is visible.
          width : Ti.UI.SIZE
      });
        
      for(var i=0, ilen=fruit.length; i<ilen; i++){
        var row = Ti.UI.createPickerRow({
          title: fruit[i]
        });
        column1.addRow(row);
      }
       
      picker.add([column1]);
        
      win.add(picker);
       
      win.open();
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pagarwal Priya Agarwal
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19145
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration