[TIMOB-8253] Android: Picker - Picker will not fill in parent view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-03-26T13:06:09.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-and031912, qe-nfc |
Reporter | Wilson Luu |
Assignee | Marshall Culpepper |
Created | 2012-03-23T15:06:56.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
device-2012-03-23-160542.png | 2012-03-23T15:06:56.000+0000 | 35810 |
It may be that the Android Picker doesn't actually grow vertically (only horizontally)
Android behavior is correct in this use case
Closing ticket as invalid.