Titanium JIRA Archive
Appcelerator Community (AC)

[AC-571] View style class does not work in the nested case

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-01-18T08:56:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsandroid
ReporterDavid He
AssigneeSharif AbuDarda
Created2016-01-16T10:26:35.000+0000
Updated2016-01-18T08:56:26.000+0000

Description

Expected

Call Option should be displayed in #000000

Actual

Green
<Alloy>
  <Window class="container" backgroundColor="white">
    <View class="radio-group">
      <Label autoStyle="true" id="cal" type="cal" class='radio selected'>Call Option</Label>
      <Label autoStyle="true" id="put" type="put" class='radio'>Put Option</Label>
    </View>
  </Window>
</Alloy>
'.radio-group': {
  top: 5,
  layout: 'horizontal',
  left: 50,
  height: Ti.UI.SIZE
}

'.radio': {
  top: 10,
  left: 20,
  font: {
    fontSize: 18
  },
  color: '#B6B6B4'
}

'.radio[platform=android formFactor=handheld]': {
  top: 10,
  left: 10,
  font: {
    fontSize: 13
  },
  color: 'green'
}

'.radio-group[platform=android formFactor=handheld]': {
  top: 5,
  layout: 'horizontal',
  left: 10,
  height: Ti.UI.SIZE
}

'.selected': {
  color: '#000000'
}

Attachments

FileDateSize
Screen Shot 2016-01-17 at 2.13.00 PM.png2016-01-17T08:18:59.000+000027929

Comments

  1. Sharif AbuDarda 2016-01-17

    Hello, I tried your code and was not able to reproduce the issue. The Call Option is displayed in #000000. See the attachment.

    ENVIRONMENT

    SDK 5.1.1.GA CLI 5.1.0. Alloy 1.7.8 node v4.2.2 npm 2.14.7 Android 5.1.0 Thanks.
  2. David He 2016-01-17

    Hi Sharif Thanks for your test. I can still reproduce the issue on both emulators and my physical device - see env below ###Physical device Android 5.0.1 Samsung Galaxy S4 ###Genymotion emulator Android 4.1.1 Samsung Galaxy S2 I will try your env later. Thanks
  3. Sharif AbuDarda 2016-01-18

    Hello, Are you using any custom theme in "app/themes" or in platform folder for Android? If you have theme file in app/themes, It will customize the assets and styles of the entire GUI. Test on updated version.Thanks.

JSON Source