Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

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

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.4.0
Fix Version/sn/a
ComponentsiOS
Labelsparity, qe-3.4.0, reprod
ReporterPriya Agarwal
AssigneeUnknown
Created2014-09-03T11:15:01.000+0000
Updated2018-02-28T20:04:12.000+0000

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 {color:green}*Expected Result:*{color} 1.Picker must be visible. 2.Picker must be visible. {color:red}*Actual Result:*{color} 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();

Comments

  1. Shameer Jan 2014-09-25

    Issue reproduces with TiSDK 3.4.0 Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.4.0.GA iOS SDK: 7.1 , iOS iPhone Simulator: 7.1
  2. Lee Morris 2017-06-26

    I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170623141152 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source