{ "id": "121246", "key": "TIMOB-15751", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-14T01:08:30.000+0000", "created": "2013-10-15T23:15:02.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-16T21:01:14.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": "h2. Problem\r\nA view with height set to Ti.UI.SIZE and fixed height children will incorrectly behave like Ti.UI.FILL *IF* the child contains its own child view with height set to Ti.UI.FILL.\r\n\r\nh2. Test case\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar window = Ti.UI.createWindow({backgroundColor: \"white\"});\r\n\r\nvar dynamicHeight = Ti.UI.createView({height: Ti.UI.SIZE, backgroundColor: \"yellow\"});\r\nwindow.add(dynamicHeight);\r\n\r\nvar fixedHeight = Ti.UI.createView({height: 100, backgroundColor: \"red\"});\r\ndynamicHeight.add(fixedHeight);\r\n\r\nvar fillHeight = Ti.UI.createView({height: Ti.UI.FILL, width: \"50%\", backgroundColor: \"blue\"});\r\nfixedHeight.add(fillHeight);\r\n\r\n// Toggle height between fill and fixed\r\nwindow.addEventListener('click', function() {\r\n fillHeight.height = (fillHeight.height == Ti.UI.FILL) ? 100 : Ti.UI.FILL; \r\n});\r\n\r\nwindow.open();\r\n{code} \r\n\r\nExpected: dynamicHeight should be the same size as its fixed height child.\r\nActual: dynamicHeight fills the screen.\r\n\r\nh2. Workaround\r\nDon't use FILL anywhere inside a SIZE if you value your sanity.", "attachment": [], "flagged": false, "summary": "Android: height: Ti.UI.SIZE doesn't work correctly when descendant has height: Ti.UI.FILL", "creator": { "name": "liamcmitchell", "key": "liamcmitchell", "displayName": "Liam Mitchell", "active": true, "timeZone": "Pacific/Auckland" }, "subtasks": [], "reporter": { "name": "liamcmitchell", "key": "liamcmitchell", "displayName": "Liam Mitchell", "active": true, "timeZone": "Pacific/Auckland" }, "environment": "Android: 2.3.3 & 4.3\r\nTitanium Studio Version: 3.1.3.201309132423", "comment": { "comments": [ { "id": "283208", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "\r\nIf one of the parents is fixed height or width, do not consider for fill conflict.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5099", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-09T15:03:07.000+0000", "updated": "2013-12-09T15:03:07.000+0000" }, { "id": "413019", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:01:14.000+0000", "updated": "2017-03-16T21:01:14.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }