{ "id": "137344", "key": "TIMOB-19536", "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": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-23T00:02:39.000+0000", "created": "2014-09-29T19:28:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "3.2.2.GA", "3.4.0", "TCSupportTriage", "api", "auto", "label", "size", "view", "width" ], "versions": [ { "id": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" } ], "issuelinks": [ { "id": "55824", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "169561", "key": "TIMOB-25173", "fields": { "summary": "Android: Size/Fill layout conflicts are not handled the same as iOS and Windows", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-23T00:02:47.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "If you create a View with a horizontal layout and a fixed width, and two children, one of fixed width, and one of \"SIZE\" width, the second one will expand to, what appears to be, the full size of the container, even though this makes it run out of the containing view (and get cut off). This works as expected in iOS. \r\n\r\nAlso, if you set the view to FILL, it doesn't get cut off in that case either.\r\n\r\nHere's an example of code that demonstrates this issue.\r\n\r\nNote, depending on screen size, part of the \"Alphabet\" label is getting cut off. The amount that gets cut off seems to be dependent on the size of the view I've ID'ed as \"Control\".\r\n\r\n\r\n \r\n \r\n\r\n\r\n \r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n \r\n \r\n", "attachment": [], "flagged": false, "summary": "Android: When Multiple Views in horizontal layout, \"SIZE\" constrains to the full container size, not the remaining available width", "creator": { "name": "timkellypa", "key": "timkellypa", "displayName": "Tim Kelly", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "timkellypa", "key": "timkellypa", "displayName": "Tim Kelly", "active": true, "timeZone": "America/New_York" }, "environment": "HTC One, Samsung S2, apparently all Android devices", "closedSprints": [ { "id": 939, "state": "closed", "name": "2017 Sprint 17 SDK", "startDate": "2017-08-13T23:08:29.095Z", "endDate": "2017-08-27T23:08:00.000Z", "completeDate": "2017-08-27T21:10:54.125Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "374601", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I'm facing same issue, any solution or work around?", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-01-14T20:20:01.000+0000", "updated": "2016-01-14T20:20:01.000+0000" }, { "id": "427072", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR. PR merged. Changes are seen in SDK versions:\r\n6.2.0.v20170822113609\r\n7.0.0.v20170822142802", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-23T00:02:39.000+0000", "updated": "2017-08-23T00:02:39.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }