Titanium JIRA Archive
Appcelerator Community (AC)

[AC-873] Object styles for Button/Label/TextField not overridden in [controller].tss

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2014-05-04T06:17:12.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMelvin Chia
AssigneeRitu Agrawal
Created2014-04-22T10:58:53.000+0000
Updated2016-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

  1. Ritu Agrawal 2014-04-24

    Please provide a simple runnable test case to reproduce this issue.
  2. 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.

JSON Source