{ "id": "117266", "key": "TIMOB-14576", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2015-04-14T17:12:38.000+0000", "created": "2013-07-16T23:01:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:25:20.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "In NativeControlObject to be able to front-end the layout engine when width or height is adjusted by margins some flags control how width and height are processed. The problem is when a width or height value is of type \"fixed\" for example a width: 50, height: 50 like for labels, buttons, and defer type controls then the deferWidth or deferHeight is set to false and can not be set back to true. The fix is to evaluate the width, height top and bottom property and reset if it's \"SIZE\" or the width or height is to be calculated by the engine.\r\n\r\n{code}\r\nint NativeControlObject::setWidth(TiObject* obj)\r\n{\r\n\tstring str = *String::Utf8Value(obj->getValue());\r\n\r\n\tif (str == \"auto\") {\r\n\t\treturn NATIVE_ERROR_OK;\r\n\t}\r\n\r\n\tif (deferWidth_ && str == \"UI.SIZE\") {\r\n\t\tdeferWidthType_ = Size;\r\n\t\treturn NATIVE_ERROR_OK;\r\n\t}\r\n\r\n\tdeferWidth_ = false;\r\n\tupdateLayoutProperty(Width, obj);\r\n\r\n\treturn NATIVE_ERROR_OK;\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "BlackBerry: Can not return deferWidth or deferHeight to true if width or height is initially fixed value type. ", "creator": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "349567", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Placing these items on hold for the moment based on community interest.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-14T17:12:38.000+0000", "updated": "2015-04-14T17:12:38.000+0000" }, { "id": "412872", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as BlackBerry is no longer supported by us.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:25:20.000+0000", "updated": "2017-03-16T20:25:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }