{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/2318","repository_url":"https://api.github.com/repos/almende/vis","labels_url":"https://api.github.com/repos/almende/vis/issues/2318/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/2318/comments","events_url":"https://api.github.com/repos/almende/vis/issues/2318/events","html_url":"https://github.com/almende/vis/issues/2318","id":189376784,"number":2318,"title":"Timeline 4.17.0 layout with margin.item.horizontal = 0 is broken","user":{"login":"achimschrepfer","id":22321888,"avatar_url":"https://avatars.githubusercontent.com/u/22321888?v=3","gravatar_id":"","url":"https://api.github.com/users/achimschrepfer","html_url":"https://github.com/achimschrepfer","followers_url":"https://api.github.com/users/achimschrepfer/followers","following_url":"https://api.github.com/users/achimschrepfer/following{/other_user}","gists_url":"https://api.github.com/users/achimschrepfer/gists{/gist_id}","starred_url":"https://api.github.com/users/achimschrepfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achimschrepfer/subscriptions","organizations_url":"https://api.github.com/users/achimschrepfer/orgs","repos_url":"https://api.github.com/users/achimschrepfer/repos","events_url":"https://api.github.com/users/achimschrepfer/events{/privacy}","received_events_url":"https://api.github.com/users/achimschrepfer/received_events","type":"User","site_admin":false},"labels":[{"id":147144034,"url":"https://api.github.com/repos/almende/vis/labels/Problem","name":"Problem","color":"d93f0b","default":false},{"id":82640354,"url":"https://api.github.com/repos/almende/vis/labels/Timeline","name":"Timeline","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/almende/vis/milestones/3","html_url":"https://github.com/almende/vis/milestones/Minor%20Release%20v4.18","labels_url":"https://api.github.com/repos/almende/vis/milestones/3/labels","id":2116291,"number":3,"title":"Minor Release v4.18","description":"","creator":{"login":"mojoaxel","id":600565,"avatar_url":"https://avatars.githubusercontent.com/u/600565?v=3","gravatar_id":"","url":"https://api.github.com/users/mojoaxel","html_url":"https://github.com/mojoaxel","followers_url":"https://api.github.com/users/mojoaxel/followers","following_url":"https://api.github.com/users/mojoaxel/following{/other_user}","gists_url":"https://api.github.com/users/mojoaxel/gists{/gist_id}","starred_url":"https://api.github.com/users/mojoaxel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojoaxel/subscriptions","organizations_url":"https://api.github.com/users/mojoaxel/orgs","repos_url":"https://api.github.com/users/mojoaxel/repos","events_url":"https://api.github.com/users/mojoaxel/events{/privacy}","received_events_url":"https://api.github.com/users/mojoaxel/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":24,"state":"open","created_at":"2016-11-05T12:23:35Z","updated_at":"2016-11-23T15:01:33Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-11-15T12:16:54Z","updated_at":"2016-11-25T13:11:11Z","closed_at":null,"body":"In previous versions setting the margin to zero worked like this\r\n![Vis Timeline 4.16.1](https://picload.org/image/rdwroocr/visjs_4161.png)\r\n\r\nNow in 4.17.0 it seems to be broken:\r\n![Vis Timeline 4.17.0](https://picload.org/image/rdwrooca/visjs_4170.png)\r\n\r\nMy options are as follows:\r\n`        var options = {\r\n            start: Date.now() - 60 * 60 * 1000,\r\n            end: new Date(Date.now() + 8 * 60 * 60 * 1000),\r\n            editable: true,\r\n            margin: {\r\n                item: {\r\n                    horizontal: 0\r\n                }\r\n            }\r\n        };`\r\n\r\nHere is an example of the data used:\r\n`[{\"id\":1080,\"group\":2027,\"content\":\"13 (Crips-A)\",\"start\":\"2016-11-15T13:01:33\",\"end\":\"2016-11-15T18:11:55.43\",\"setupSeconds\":1800,\"materialNumber\":\"Crips-A\",\"targetQuantity\":4000.00,\"actualQuantity\":4000.00,\"orderNumber\":\"13\",\"orderStatus\":\"Finished\"},{\"id\":1094,\"group\":2027,\"content\":\"27 (Flakes)\",\"start\":\"2016-11-15T18:11:56\",\"end\":\"2016-11-15T23:36:19.551\",\"setupSeconds\":1800,\"materialNumber\":\"Flakes\",\"targetQuantity\":4200.00,\"actualQuantity\":0.0,\"orderNumber\":\"27\",\"orderStatus\":\"Planned\"},{\"id\":1100,\"group\":2027,\"content\":\"33 (Flakes)\",\"start\":\"2016-11-15T23:36:20\",\"end\":\"2016-11-16T05:00:43.551\",\"setupSeconds\":1800,\"materialNumber\":\"Flakes\",\"targetQuantity\":4200.00,\"actualQuantity\":3990.00,\"orderNumber\":\"33\",\"orderStatus\":\"Running\"},{\"id\":1102,\"group\":2027,\"content\":\"35 (Choc1)\",\"start\":\"2016-11-16T05:00:44\",\"end\":\"2016-11-16T10:32:08.112\",\"setupSeconds\":1800,\"materialNumber\":\"Choc1\",\"targetQuantity\":4300.00,\"actualQuantity\":0.0,\"orderNumber\":\"35\",\"orderStatus\":\"Planned\"},{\"id\":1105,\"group\":2027,\"content\":\"38 (Whitey7c)\",\"start\":\"2016-11-16T10:32:09\",\"end\":\"2016-11-16T15:07:28.626\",\"setupSeconds\":1800,\"materialNumber\":\"Whitey7c\",\"targetQuantity\":3500.00,\"actualQuantity\":0.0,\"orderNumber\":\"38\",\"orderStatus\":\"Planned\"},{\"id\":1107,\"group\":2027,\"content\":\"40 (Flakes)\",\"start\":\"2016-11-16T15:07:29\",\"end\":\"2016-11-16T19:35:48.065\",\"setupSeconds\":1800,\"materialNumber\":\"Flakes\",\"targetQuantity\":3400.00,\"actualQuantity\":3400.00,\"orderNumber\":\"40\",\"orderStatus\":\"Finished\"}]`"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/262954754","html_url":"https://github.com/almende/vis/issues/2318#issuecomment-262954754","issue_url":"https://api.github.com/repos/almende/vis/issues/2318","id":262954754,"user":{"login":"achimschrepfer","id":22321888,"avatar_url":"https://avatars.githubusercontent.com/u/22321888?v=3","gravatar_id":"","url":"https://api.github.com/users/achimschrepfer","html_url":"https://github.com/achimschrepfer","followers_url":"https://api.github.com/users/achimschrepfer/followers","following_url":"https://api.github.com/users/achimschrepfer/following{/other_user}","gists_url":"https://api.github.com/users/achimschrepfer/gists{/gist_id}","starred_url":"https://api.github.com/users/achimschrepfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achimschrepfer/subscriptions","organizations_url":"https://api.github.com/users/achimschrepfer/orgs","repos_url":"https://api.github.com/users/achimschrepfer/repos","events_url":"https://api.github.com/users/achimschrepfer/events{/privacy}","received_events_url":"https://api.github.com/users/achimschrepfer/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T13:11:11Z","updated_at":"2016-11-25T13:11:11Z","body":"Hi all, \r\n\r\ni finally made a test again with 4.17.0 (from npm). It all works fine now! Since my last test I only changed some options like this:\r\n\r\n`options = {\r\n        start: Date.now() - 60 * 60 * 1000,\r\n        end: new Date(Date.now() + 16 * 60 * 60 * 1000),\r\n        editable: true,\r\n        autoResize: true,\r\n        orientation: \"top\",\r\n        clickToUse: true,\r\n        groupOrder: \"position\",\r\n        margin: {\r\n            item: {\r\n                horizontal: 0\r\n            }\r\n        }\r\n    };`\r\n\r\nSo I don't know why it works but I think you can close this issue."}}
{"actor":{"display_login":"achimschrepfer"}}