Titanium JIRA Archive
Appcelerator Community (AC)

[AC-977] iOS: Label in PickerRow are not styled

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2015-07-16T22:35:51.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterEthan Chen
AssigneeRadamantis Torres-Lechuga
Created2015-06-23T04:33:58.000+0000
Updated2016-03-08T07:37:18.000+0000

Description

Alloy Markup:
<Alloy>
    <Picker id="time_picker_24">
        <PickerColumn id="column_hour">
            <PickerRow title="00">
                <Label text="00" />
            </PickerRow>
        </PickerColumn>
    <Picker>
</Alloy>
TSS:
"Label": {
    textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,
    font: {
        fontSize: '24dp',
        fontWeight: 'bold'
    }
}

Comments

  1. Ethan Chen 2015-06-23

    I found the problem: <PickerRow title="00"> will display the text on title and ignore every child views.
  2. Papia Chowdhury 2015-06-30

    Hello According to [doc](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.PickerRow-property-title) PickerRow title property is considered as item text which is a default behaviour. Label cannot be styled when using PickerRow title as the title by itself becomes item text of the PickerRow. So, without setting the title property we can style the label. *Testing Environment:* Appcelerator Studio, build: 4.1.0.201506261427 Titanium Sdk: 4.0.0GA iOS simulator: iphone 5s(v8.1) OS X version: 10.9.5 *Test Code:*
       <Alloy>
       <Window>
       <View>
          <Picker>
            <PickerColumn>
               <PickerRow>
                  <Label>Label Text</Label>
               </PickerRow>
                <PickerRow title="PickerRow title Text instead of label text">
                   <Label>label with pickerRow title</Label>
                </PickerRow>
            </PickerColumn>
           </Picker>
       </View>
       </Window>
       </Alloy>
       
  3. Ethan Chen 2015-07-02

    Any update here?
  4. Ethan Chen 2015-07-04

    Got it, thanks.

JSON Source