[AC-959] $.createStyle() crashes app in BlackBerry 10
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2015-09-29T01:06:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | blackberry |
Reporter | Julian Buss |
Assignee | Shak Hossain |
Created | 2014-11-24T17:50:48.000+0000 |
Updated | 2016-03-08T07:37:16.000+0000 |
Description
This code in a view controller crashes the app:
---
var labelContainer = Ti.UI.createView({
layout: 'horizontal',
height : (args["label" + i + "Height"] ? args["label" + i + "Height"] : Ti.UI.SIZE),
width : (args["label" + i + "Width"] ? args["label" + i + "Width"] : labelWidth),
left : (args["label" + i + "Left"] ? args["label" + i + "Left"] : defaultLeft),
right : (args["label" + i + "Right"] ? args["label" + i + "Right"] : defaultRight),
top : (args["label" + i + "Top"] ? args["label" + i + "Top"] : 0),
});
// Crashes on BB
labelContainer.applyProperties($.createStyle({classes: ['jbDocumentSectionFieldLabelContainer']}));
---
The app crashes directly after startup. There is no further error message, neither on Studio's console nor in the BB simulator.
Hi, Our SDK supports iOS, Android and Windows only. Thanks