Titanium JIRA Archive
Appcelerator Community (AC)

[AC-959] $.createStyle() crashes app in BlackBerry 10

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2015-09-29T01:06:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsblackberry
ReporterJulian Buss
AssigneeShak Hossain
Created2014-11-24T17:50:48.000+0000
Updated2016-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.

Comments

  1. Harish Mridha 2015-04-10

    Hi, Our SDK supports iOS, Android and Windows only. Thanks

JSON Source