{"action":"created","issue":{"url":"https://api.github.com/repos/DHTMLX/gantt/issues/8","labels_url":"https://api.github.com/repos/DHTMLX/gantt/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/DHTMLX/gantt/issues/8/comments","events_url":"https://api.github.com/repos/DHTMLX/gantt/issues/8/events","html_url":"https://github.com/DHTMLX/gantt/issues/8","id":120129036,"number":8,"title":"Throwing error 0x800a138f - JavaScript runtime error: Unable to get property '-1' of undefined or null reference","user":{"login":"anik123","id":6007117,"avatar_url":"https://avatars.githubusercontent.com/u/6007117?v=3","gravatar_id":"","url":"https://api.github.com/users/anik123","html_url":"https://github.com/anik123","followers_url":"https://api.github.com/users/anik123/followers","following_url":"https://api.github.com/users/anik123/following{/other_user}","gists_url":"https://api.github.com/users/anik123/gists{/gist_id}","starred_url":"https://api.github.com/users/anik123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anik123/subscriptions","organizations_url":"https://api.github.com/users/anik123/orgs","repos_url":"https://api.github.com/users/anik123/repos","events_url":"https://api.github.com/users/anik123/events{/privacy}","received_events_url":"https://api.github.com/users/anik123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T09:42:45Z","updated_at":"2015-12-04T18:23:25Z","closed_at":null,"body":"I am using `dhtmlxGantt v.4.0.0 Stardard`\r\n\r\nWhen add config this \r\n\r\n   ```\r\ngantt.config.show_chart = false;\r\n\r\n```\r\n\r\nThis error is throwing in the library file\r\n\r\n\r\n> - 0x800a138f - JavaScript runtime error: Unable to get property '-1' of undefined or null reference\r\n\r\nAt this moment i working by adding this line the library \r\n\r\n```\r\n    if (!gantt.config.show_chart)\r\n        return;\r\n```\r\n\r\nIn this method\r\n\r\n```\r\ngantt.showDate = function (date) {\r\n    if (!gantt.config.show_chart)\r\n        return;\r\n    var date_x = this.posFromDate(date);\r\n    var scroll_to = Math.max(date_x - this.config.task_scroll_offset, 0);\r\n    this.scrollTo(scroll_to);\r\n};\r\n\r\n```\r\n\r\nAny fix for this ? "},"comment":{"url":"https://api.github.com/repos/DHTMLX/gantt/issues/comments/162040927","html_url":"https://github.com/DHTMLX/gantt/issues/8#issuecomment-162040927","issue_url":"https://api.github.com/repos/DHTMLX/gantt/issues/8","id":162040927,"user":{"login":"AlexKlimenkov","id":988260,"avatar_url":"https://avatars.githubusercontent.com/u/988260?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexKlimenkov","html_url":"https://github.com/AlexKlimenkov","followers_url":"https://api.github.com/users/AlexKlimenkov/followers","following_url":"https://api.github.com/users/AlexKlimenkov/following{/other_user}","gists_url":"https://api.github.com/users/AlexKlimenkov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexKlimenkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexKlimenkov/subscriptions","organizations_url":"https://api.github.com/users/AlexKlimenkov/orgs","repos_url":"https://api.github.com/users/AlexKlimenkov/repos","events_url":"https://api.github.com/users/AlexKlimenkov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexKlimenkov/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T18:23:25Z","updated_at":"2015-12-04T18:23:25Z","body":"Thanks, I've reproduced the issue.\r\nWe're going to push a fix-update near time, it will contain this fix as well.\r\n"}}