[ALOY-1193] Alloy: Changing Style in JS doesn't work for dynamically created views
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-12-02T16:57:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Runtime |
Labels | alloy, runnable, runtime, style |
Reporter | Shuo Liang |
Assignee | Tim Poulsen |
Created | 2014-12-02T04:20:05.000+0000 |
Updated | 2018-03-07T22:28:29.000+0000 |
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 devicesAttachments
File | Date | Size |
---|---|---|
TestCase.zip | 2014-12-02T04:27:00.000+0000 | 3729 |