Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8253] Android: Picker - Picker will not fill in parent view

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-03-26T13:06:09.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-and031912, qe-nfc
ReporterWilson Luu
AssigneeMarshall Culpepper
Created2012-03-23T15:06:56.000+0000
Updated2017-03-09T23:21:43.000+0000

Description

Steps to reproduce: 1. Run code on Android:
var win = Ti.UI.createWindow();
win.backgroundColor = 'white';

var label = Ti.UI.createLabel({
	text: 'Pass if the Picker is within the view (green)',
	top: 20,
	left: 10,
	height: Ti.UI.SIZE,
	width: Ti.UI.SIZE,
	color: 'black'
});

var view1 = Ti.UI.createView({
	height: 200,
	width: 100,
	top: 80,
	backgroundColor: 'green'
});


var picker = Titanium.UI.createPicker();
var data = [];
data[0]=Titanium.UI.createPickerRow({title:'Bananas'});
data[1]=Titanium.UI.createPickerRow({title:'Strawberries'});
data[2]=Titanium.UI.createPickerRow({title:'Mangos'});
data[3]=Titanium.UI.createPickerRow({title:'Grapes'});
picker.add(data);

view1.add(picker);


win.add(view1);
/*win.add(view2);
win.add(view3);*/
win.add(label);
win.open();
Actual: Picker does not fill the parent view. See attachment. Expected: Picker should fill the parent view.

Attachments

FileDateSize
device-2012-03-23-160542.png2012-03-23T15:06:56.000+000035810

Comments

  1. Marshall Culpepper 2012-03-24

    It may be that the Android Picker doesn't actually grow vertically (only horizontally)
  2. Opie Cyrus 2012-03-26

    Android behavior is correct in this use case
  3. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source