[AC-977] iOS: Label in PickerRow are not styled
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2015-07-16T22:35:51.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Ethan Chen |
| Assignee | Radamantis Torres-Lechuga |
| Created | 2015-06-23T04:33:58.000+0000 |
| Updated | 2016-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'
}
}
I found the problem:
<PickerRow title="00">will display the text ontitleand ignore every child views.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>Any update here?
Got it, thanks.