{ "id": "146541", "key": "TIMOB-18776", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-04-14T23:38:26.000+0000", "created": "2015-04-02T05:45:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "align", "annotation", "map" ], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T20:41:15.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Description\r\nUsing may Annotation, when Annotation title text is large, Annotation leftButton and rightButton are not aligned properly. Button appears in the top portion\r\n\r\nh6.Reproduce:\r\n1.Just simply run the test case below.\r\n{code:title=app.js}\r\nvar Map = require('ti.map'); \r\nvar win = Titanium.UI.createWindow(); \r\n\r\nvar mountainView = Map.createAnnotation({ \r\nlatitude : -33.852222, \r\nlongitude : 151.210556, \r\ntitle : \"Aadsafsfsdfsdfdsfdsfdsfdsfsfsdf\", \r\nsubtitle : 'skjhfjskh', \r\npincolor : Map.ANNOTATION_AZURE, \r\nmyid : 1 // Custom property to uniquely identify this annotation. \r\n}); \r\n\r\nmountainView.leftButton = \"images.png\"; \r\nmountainView.rightButton = Titanium.UI.iPhone.SystemButton.INFO_LIGHT;; \r\n\r\nvar mapview = Map.createView({ \r\nmapType : Map.NORMAL_TYPE, \r\nregion : { \r\nlatitude : -33.87365, \r\nlongitude : 151.20689, \r\nlatitudeDelta : 0.1, \r\nlongitudeDelta : 0.1 \r\n}, \r\nanimate : true, \r\nregionFit : true, \r\nuserLocation : true, \r\nannotations : [mountainView] \r\n}); \r\n\r\nwin.add(mapview); \r\n// Handle click events on any annotations on this map. \r\nmapview.addEventListener('click', function(evt) { \r\nTi.API.info(\"Annotation \" + evt.title + \" clicked, id: \" + evt.annotation.myid); \r\n}); \r\nwin.open(); \r\n{code}\r\n\r\nh6.Except Result:\r\nThe button should get aligned well.\r\n\r\nh6.Actual Result:\r\nAnnotation leftButton and rightButton are not aligned properly. Button appears in the top portion. Screenshot attached.\r\n", "attachment": [ { "id": "54777", "filename": "map.PNG", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-04-02T05:51:01.000+0000", "size": 665012, "mimeType": "image/png" }, { "id": "54916", "filename": "nativeIphone4.png", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-14T05:09:50.000+0000", "size": 519844, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Map Annotation buttons are not aligned properly when Annotation title text is large", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 3.5.*\r\niOS 8.1 and 8.2", "closedSprints": [ { "id": 371, "state": "closed", "name": "2015 Sprint 08 SDK", "startDate": "2015-04-11T00:00:49.626Z", "endDate": "2015-04-24T12:00:00.000Z", "completeDate": "2015-04-28T15:02:06.073Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "349335", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can we try this with a native test case?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-13T16:35:28.000+0000", "updated": "2015-04-13T16:35:28.000+0000" }, { "id": "349431", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Native test case outcome is the *same* as described. Please find attached screenshot of native test case. Hence this is native behavior.\r\n\r\n*Note*: This only occurs on iPhone 4 and 5. it looks ok on iPhone 6 and 6 plus. \r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-14T05:09:15.000+0000", "updated": "2015-04-14T05:09:15.000+0000" }, { "id": "414377", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:41:15.000+0000", "updated": "2017-03-21T20:41:15.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }