Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1193

Alloy: Changing Style in JS doesn't work for dynamically created views

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Runtime
    • Environment:

      Alloy 1.5
      Titanium SDK 3.4.1
      IOS 8.1
      Android 4.2.2

      Description

      Alloy: Changing Style in JS doesn't work for dynamically created views

      Attached the test case to reproduce problem.

      Reproduce:

      1.Run the app device or simulator. (Do no click "Go to Dashboard first")
      2.Click the "setNewsGothicSBOP" button to set some Alloy.Global Properties.
      3.Click "Go to Dashboard", view the Label style is same.
      4.Click "Change", then choose "setCordiaNew" button to re-set those Alloy.Global Properties.
      5.Click "Go to Dashboard" again.

      Expect Result:

      All labels should change to apply new style.

      Actual Result:

      Only the labels defined in XML apply the new style, those views(Labels) created in JS did not apply the new style.

      N.B.
      Problem occurs in both IOS and Android devices

        Attachments

          Activity

            People

            • Assignee:
              skypanther Tim Poulsen
              Reporter:
              sliang Shuo Liang
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration