{ "id": "127854", "key": "TIMOB-16645", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": null, "resolutiondate": null, "created": "2014-03-19T11:26:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:01.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "NOTE: This only happens on Android 4.4+, older versions of Android are behaving correctly.\r\n\r\nWhen trying to align certain elements on a screen using percentages, the relative widths calculated are going above 100% within the parent view, causing wrapping or clipping within the view.\r\n\r\nThis is happening when you have a parent view of say 90% width and then two child views that both have 50% width.\r\n\r\nh3. Expected result:\r\nThe child views should be 1/2 the size of the parent view's width and should render as expected, with both side by side.\r\n\r\nh3. Actual result:\r\nThe child views are being wrapped or clipped creating an undesired look and feel.\r\n\r\nh3. Workaround:\r\nSetting one or both of the elements to a width of \"49.9%\" fixes the issue.\r\n\r\nSAMPLE CODE HERE:\r\nhttps://gist.github.com/grantges/6747ed1d3513f0d45eb2", "attachment": [], "flagged": false, "summary": "Android 4.4.X - sizing with percentages creates unexpected results", "creator": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }