{ "id": "155075", "key": "TIMOB-20463", "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": null, "resolutiondate": null, "created": "2016-02-23T16:16:42.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:22.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": [], "description": "h3. Steps to Reproduce\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n backgroundColor:'#336699',\r\n height:200,\r\n layout: 'horizontal',\r\n scrollType: 'horizontal'\r\n});\r\n\r\nvar image = Ti.UI.createImageView({\r\n\timage: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png',\r\n\theight: Ti.UI.FILL\r\n});\r\nvar image2 = Ti.UI.createImageView({\r\n\timage: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png',\r\n\theight: Ti.UI.FILL\r\n});\r\nvar image3 = Ti.UI.createImageView({\r\n\timage: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png',\r\n\theight: Ti.UI.FILL\r\n});\r\nvar image4 = Ti.UI.createImageView({\r\n\timage: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png',\r\n\theight: Ti.UI.FILL\r\n});\r\nscrollView.add(image);\r\n\r\nscrollView.add(image2);\r\nscrollView.add(image3);\r\nscrollView.add(image4);\r\n\r\nwin.add(scrollView);\r\n\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nh3. Actual Result\r\nOn Android there everything is working fine (android.png).\r\nOn iOS if image height is higher than scrollView's, than imageView with height set to Ti.UI.FILL will be higher than scrollView and than you can scrollView in any direction(ios.png).\r\n\r\nh3. Expected Result\r\nSame behaviour on both systems. No such bug on iOS.", "attachment": [ { "id": "58304", "filename": "android.png", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-23T16:16:46.000+0000", "size": 30838, "mimeType": "image/png" }, { "id": "58303", "filename": "ios.png", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-23T16:16:44.000+0000", "size": 34638, "mimeType": "image/png" } ], "flagged": false, "summary": "Problems with too high images in iOS scrollView", "creator": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "377757", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\nI have tested the issue you reported. If we use imageView with height set to 100% it works as expected in [android|http://postimg.org/image/i6bhqaxzz/] and [iOS|http://postimg.org/image/rlzg0o9nl/].\r\nBut in iOS there is some distance between two images.\r\n\r\n*Testing Environment:*\r\nAppcelerator Command-Line Interface, version 5.2.0\r\nTitanium SDK Version: 5.1.2.GA\r\nPlatform: iOS, andriod\r\nSimulator: iphone 5/ iOS 8.0\r\nEmulator : samsung galaxy note 3\r\n\r\n*Test Code:*\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\n \r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\r\n backgroundColor:'#336699',\r\n\r\n height:200,\r\n\r\n layout: 'horizontal',\r\n\r\n scrollType: 'horizontal'\r\n\r\n});\r\n\r\n \r\n\r\nvar image = Ti.UI.createImageView({\r\n\r\nimage: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png',\r\n\r\n//height: Ti.UI.FILL,\r\n\r\nheight: '100%',\r\n\r\n});\r\n\r\nvar image2 = Ti.UI.createImageView({\r\n\r\nimage: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png',\r\n\r\n//height: Ti.UI.FILL,\r\n\r\nheight: '100%',\r\n\r\n});\r\n\r\nvar image3 = Ti.UI.createImageView({\r\n\r\nimage: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png',\r\n\r\n//height: Ti.UI.FILL,\r\n\r\nheight: '100%',\r\n\r\n});\r\n\r\nvar image4 = Ti.UI.createImageView({\r\n\r\nimage: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png',\r\n\r\n//height: Ti.UI.FILL,\r\n\r\nheight: '100%',\r\n\r\n});\r\n\r\nscrollView.add(image);\r\n\r\n \r\n\r\nscrollView.add(image2);\r\n\r\nscrollView.add(image3);\r\n\r\nscrollView.add(image4);\r\n\r\n \r\n\r\nwin.add(scrollView);\r\n\r\n\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\n*Test Result:*\r\n\r\nCheck [ios|http://postimg.org/image/rlzg0o9nl/], [android|http://postimg.org/image/i6bhqaxzz/].", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-02-24T11:44:00.000+0000", "updated": "2016-02-24T11:44:00.000+0000" }, { "id": "377785", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nUnexpected distance between images with '100%' is another bug, which I encountered once on Android too but couldn't reproduce.", "updateAuthor": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-24T17:22:36.000+0000", "updated": "2016-02-24T17:23:05.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }