[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 ontitle
and 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:*
Any update here?
Got it, thanks.