Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2105] Android: PickerRow does not respect fontSize and height (and possibly other properties also)

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2014-03-31T22:08:41.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.3.0
ComponentsAndroid
Labelsandroid, feature
ReporterRalf Pfeiffer
AssigneeIngo Muschenetz
Created2011-04-15T03:10:34.000+0000
Updated2017-03-22T18:28:24.000+0000

Description

The following code generates a very simple picker. If you change the values of fontSize and/or height, you will see that there is no effect. The same issue may apply to other properties.

Note that the change event is included to show that it works as expected.

win = Ti.UI.currentWindow;
pickerData =
    [
        { title:'Option 1' },
        { title:'Option 2' },
        { title:'Option 3' },
        { title:'Option 4' }
    ];

var pickerRows = [];
for(var i=0, ilen=pickerData.length; i< ilen; i++){
    pickerRows.push(Ti.UI.createPickerRow({ title:pickerData[i].title, fontSize:6, height:6 }));
}

var picker = Ti.UI.createPicker();
picker.add(pickerRows);
win.add(picker);

picker.addEventListener('change', function(e){
    Ti.API.info('Selected value: '+e.selectedValue);
});

Comments

  1. Don Thorp 2011-04-15

    I'm marking this a feature. Bill please triage this when you get a chance and see what the risk for including in 1.5 is.

  2. hal 2011-04-15

    See also feature request #2116

  3. ankur garha 2013-05-05

    When can we expect this bug to be resolved, because we have been running through the same issue
  4. Vishal Duggal 2014-03-31

    Create pickers with custom views for full customization
  5. Lee Morris 2017-03-22

    Closing ticket as the issue will not fix and with reference to the above comments.

JSON Source