[AC-873] Object styles for Button/Label/TextField not overridden in [controller].tss
GitHub Issue
n/a
Type
Bug
Priority
n/a
Status
Resolved
Resolution
Cannot Reproduce
Resolution Date
2014-05-04T06:17:12.000+0000
Affected Version/s
n/a
Fix Version/s
n/a
Components
n/a
Labels
n/a
Reporter
Melvin Chia
Assignee
Ritu Agrawal
Created
2014-04-22T10:58:53.000+0000
Updated
2016-03-08T07:37:10.000+0000
Description
Steps to Reproduce
In app.tss, the default settings for Button, Label, and TextField are specified for example:
'Button':{
width:Titanium.UI.SIZE,
textAlign:Ti.UI.TEXT_ALIGNMENT_CENTER
}
In another [controller].tss, I try to override the settings in app.tss but the generated app does not show the override:
'Button':{
width:Titanium.UI.FILL,
textAlign:Ti.UI.TEXT_ALIGNMENT_CENTER
}
A workaround is to assign an additional class to the Button object in the [view].xml, and assign the width to the class.
'.fullWidth':{
width:Titanium.UI.FILL
}
Actual Result
Button does not obey [controller].tss width which is supposed to override default in app.tss. Button is rendered on Android at UI.SIZE instead of UI.FILL as expected.
Expected Result
Button is supposed to be rendered as UI.FILL instead of its default UI.SIZE.
Comments
Ritu Agrawal 2014-04-24
Please provide a simple runnable test case to reproduce this issue.
Ritu Agrawal 2014-05-04
Resolving this ticket as the reporter has not provided the requested test case. We would be happy to reopen this ticket once we have a test case to reproduce this issue.
Please provide a simple runnable test case to reproduce this issue.
Resolving this ticket as the reporter has not provided the requested test case. We would be happy to reopen this ticket once we have a test case to reproduce this issue.