{"action":"created","issue":{"url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/373","repository_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback","labels_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/373/comments","events_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/373/events","html_url":"https://github.com/telerik/nativescript-ui-feedback/issues/373","id":269709055,"node_id":"MDU6SXNzdWUyNjk3MDkwNTU=","number":373,"title":"Calendar(iOS): Events longer than 1 day are drawn like they are one day event","user":{"login":"Natalia-Hristova","id":5803037,"node_id":"MDQ6VXNlcjU4MDMwMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/5803037?v=4","gravatar_id":"","url":"https://api.github.com/users/Natalia-Hristova","html_url":"https://github.com/Natalia-Hristova","followers_url":"https://api.github.com/users/Natalia-Hristova/followers","following_url":"https://api.github.com/users/Natalia-Hristova/following{/other_user}","gists_url":"https://api.github.com/users/Natalia-Hristova/gists{/gist_id}","starred_url":"https://api.github.com/users/Natalia-Hristova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natalia-Hristova/subscriptions","organizations_url":"https://api.github.com/users/Natalia-Hristova/orgs","repos_url":"https://api.github.com/users/Natalia-Hristova/repos","events_url":"https://api.github.com/users/Natalia-Hristova/events{/privacy}","received_events_url":"https://api.github.com/users/Natalia-Hristova/received_events","type":"User","site_admin":false},"labels":[{"id":730309195,"node_id":"MDU6TGFiZWw3MzAzMDkxOTU=","url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/labels/backlog","name":"backlog","color":"ededed","default":false},{"id":352988509,"node_id":"MDU6TGFiZWwzNTI5ODg1MDk=","url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/labels/bug","name":"bug","color":"ee0701","default":true},{"id":485848949,"node_id":"MDU6TGFiZWw0ODU4NDg5NDk=","url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/labels/calendar","name":"calendar","color":"eb6420","default":false},{"id":639675222,"node_id":"MDU6TGFiZWw2Mzk2NzUyMjI=","url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/labels/os:%20ios","name":"os: ios","color":"006b75","default":false},{"id":730307664,"node_id":"MDU6TGFiZWw3MzAzMDc2NjQ=","url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/labels/severity:%20medium","name":"severity: medium","color":"ff9933","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-30T18:36:39Z","updated_at":"2018-08-28T13:55:59Z","closed_at":"2018-08-28T13:55:59Z","author_association":"NONE","body":"### Tell us about the problem\r\nLonger events are shown like they end in the same day (when the event is ~ 3 days long)\r\n\r\n### Which platform(s) does your issue occur on?\r\niOS\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- **Progress NativeScript UI version:** 3.2.0\r\n- **CLI:** 3.3.0\r\n- **Cross-platform modules:** 3.3.0\r\n- **Runtime(s):** 3.3.0\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n1. In SDK example modify [events-view-modes-model.ts](https://github.com/telerik/nativescript-ui-samples/blob/release/sdk/app/calendar/events-view-modes/events-view-modes-model.ts) file so there are multi-day event(s)\r\n2. Run SDK -> Calendar -> Events view modes example and go to the date with the longer event\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\ne.g. update events-view-modes-model.ts file\r\n```TypeScript\r\n...\r\n    calendarEvents: Array<calendarModule.CalendarEvent>;\r\n    private _viewModesInfo;\r\n    private _eventTitles: Array<string> = [\"Meeting with Jack\", \"Lunch with Peter\", \"Planning meeting\",\r\n        \"Go shopping\", \"Very important meeting\", \"Another meeting\"];\r\n    private _eventColors: Array<Color> = [new Color(\"#0288D1\"), new Color(\"#009688\"), new Color(\"#E040FB\")];\r\n\r\n     \r\n    constructor() {\r\n        super();\r\n        this.createEvents();\r\n        this._viewModesInfo = {\r\n            options: [\"None\", \"Inline\", \"Popover (available on iPad only)\"],\r\n            index: 0\r\n        };\r\n    }\r\n    \r\n    get eventsMode() {\r\n        return this.get(\"eventsViewMode\");\r\n    }\r\n    \r\n    set eventsMode(value: string) { \r\n        this.set(\"eventsViewMode\", value);\r\n    }\r\n    \r\n    public createEvents() {\r\n    var events: Array<calendarModule.CalendarEvent> = new Array<calendarModule.CalendarEvent>();\r\n        var now: Date = new Date();\r\n        var startDate: Date = new Date(now.getFullYear(), now.getMonth(), now.getDate());\r\n        var endDate: Date = new Date(now.getFullYear(), now.getMonth(), now.getDate());\r\n\r\n        startDate.setHours(9);\r\n        // endDate.setHours(10);\r\n        var event = new calendarModule.CalendarEvent(this._eventTitles[0], new Date(2017,9,30,11), new Date(2017,10,1,8), false, this._eventColors[0]);\r\n        events.push(event);\r\n\r\n        startDate.setHours(12);\r\n        endDate.setHours(13);\r\n        var event = new calendarModule.CalendarEvent(this._eventTitles[1], startDate, endDate, false, this._eventColors[1]);\r\n        events.push(event);\r\n\r\n        startDate.setHours(13);\r\n        endDate.setHours(14);\r\n        var event = new calendarModule.CalendarEvent(this._eventTitles[2], startDate, endDate, false, this._eventColors[0]);\r\n        events.push(event);\r\n\r\n        startDate.setHours(20);\r\n        endDate.setHours(22);\r\n        var event = new calendarModule.CalendarEvent(this._eventTitles[3], startDate, endDate, false, this._eventColors[2]);\r\n        events.push(event);\r\n\r\n        startDate.setHours(2);\r\n        endDate.setHours(4);\r\n        var event = new calendarModule.CalendarEvent(this._eventTitles[4], startDate, endDate, false, this._eventColors[0]);\r\n        events.push(event);\r\n\r\n        startDate.setHours(16);\r\n        endDate.setHours(17);\r\n        var event = new calendarModule.CalendarEvent(this._eventTitles[5], startDate, endDate, false, this._eventColors[0]);\r\n        events.push(event);\r\n\r\n        this.calendarEvents = events;\r\n    }\r\n...\r\n```\r\n![2017-10-30](https://user-images.githubusercontent.com/5803037/32188966-fbbdf322-bdb1-11e7-8971-ce11b5e48089.png)\r\n"},"comment":{"url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/comments/416593332","html_url":"https://github.com/telerik/nativescript-ui-feedback/issues/373#issuecomment-416593332","issue_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/373","id":416593332,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjU5MzMzMg==","user":{"login":"zbranzov","id":2787764,"node_id":"MDQ6VXNlcjI3ODc3NjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2787764?v=4","gravatar_id":"","url":"https://api.github.com/users/zbranzov","html_url":"https://github.com/zbranzov","followers_url":"https://api.github.com/users/zbranzov/followers","following_url":"https://api.github.com/users/zbranzov/following{/other_user}","gists_url":"https://api.github.com/users/zbranzov/gists{/gist_id}","starred_url":"https://api.github.com/users/zbranzov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbranzov/subscriptions","organizations_url":"https://api.github.com/users/zbranzov/orgs","repos_url":"https://api.github.com/users/zbranzov/repos","events_url":"https://api.github.com/users/zbranzov/events{/privacy}","received_events_url":"https://api.github.com/users/zbranzov/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T13:55:59Z","updated_at":"2018-08-28T13:55:59Z","author_association":"CONTRIBUTOR","body":"This issue should be fixed in nativescript-ui-calendar@3.8.1"}}
{"actor":{"display_login":"zbranzov"}}