{"action":"created","issue":{"url":"https://api.github.com/repos/ellson/graphviz/issues/27","repository_url":"https://api.github.com/repos/ellson/graphviz","labels_url":"https://api.github.com/repos/ellson/graphviz/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/ellson/graphviz/issues/27/comments","events_url":"https://api.github.com/repos/ellson/graphviz/issues/27/events","html_url":"https://github.com/ellson/graphviz/issues/27","id":42894244,"number":27,"title":"SVG viewBox problem with 2.38.0","user":{"login":"gfredericks","id":135443,"avatar_url":"https://avatars.githubusercontent.com/u/135443?v=3","gravatar_id":"","url":"https://api.github.com/users/gfredericks","html_url":"https://github.com/gfredericks","followers_url":"https://api.github.com/users/gfredericks/followers","following_url":"https://api.github.com/users/gfredericks/following{/other_user}","gists_url":"https://api.github.com/users/gfredericks/gists{/gist_id}","starred_url":"https://api.github.com/users/gfredericks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfredericks/subscriptions","organizations_url":"https://api.github.com/users/gfredericks/orgs","repos_url":"https://api.github.com/users/gfredericks/repos","events_url":"https://api.github.com/users/gfredericks/events{/privacy}","received_events_url":"https://api.github.com/users/gfredericks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-09-16T15:19:01Z","updated_at":"2016-02-25T16:53:46Z","closed_at":null,"body":"The following graph produces a bad SVG with `2.38.0`, while `2.36.0` does not seem to have the problem:\r\n\r\n```\r\ndigraph G {\r\n  graph [dpi = 300];\r\n  node [fontname = \"monospace\"];\r\n  n24 [label=\"24\"];\r\n  n83 [label=\"8⋅3\"];\r\n  n64 [label=\"6⋅4\"];\r\n  n122 [label=\"12⋅2\"];\r\n  n432 [label=\"4⋅3⋅2\"];\r\n  n622 [label=\"6⋅2⋅2\"];\r\n  n3222 [label=\"3⋅2⋅2⋅2\"];\r\n  n24 -> n83;\r\n  n24 -> n64;\r\n  n24 -> n122;\r\n  n83 -> n432;\r\n  n64 -> n432;\r\n  n64 -> n622;\r\n  n122 -> n622;\r\n  n432 -> n3222;\r\n  n622 -> n3222;\r\n}\r\n```\r\n\r\nHere is the important part of the diff of the svg outputs (`2.38.0` is first, `2.36.0` is second):\r\n\r\n```\r\n7,8c7,8\r\n< <svg width=\"902pt\" height=\"1083pt\"\r\n<  viewBox=\"0.00 0.00 216.50 260.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n---\r\n> <svg width=\"900pt\" height=\"1083pt\"\r\n>  viewBox=\"0.00 0.00 900.00 1083.33\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n```\r\n\r\nYou can see in the first version the `viewBox` is no longer related to the `width` and `height` attributes. The result is that, for this particular graph, the image appears blank (presumably because there is nothing in that particular rectangle). If you manually adjust the output to be similar to the second version, the image appears fine."},"comment":{"url":"https://api.github.com/repos/ellson/graphviz/issues/comments/188875544","html_url":"https://github.com/ellson/graphviz/issues/27#issuecomment-188875544","issue_url":"https://api.github.com/repos/ellson/graphviz/issues/27","id":188875544,"user":{"login":"maxcountryman","id":74351,"avatar_url":"https://avatars.githubusercontent.com/u/74351?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcountryman","html_url":"https://github.com/maxcountryman","followers_url":"https://api.github.com/users/maxcountryman/followers","following_url":"https://api.github.com/users/maxcountryman/following{/other_user}","gists_url":"https://api.github.com/users/maxcountryman/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcountryman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcountryman/subscriptions","organizations_url":"https://api.github.com/users/maxcountryman/orgs","repos_url":"https://api.github.com/users/maxcountryman/repos","events_url":"https://api.github.com/users/maxcountryman/events{/privacy}","received_events_url":"https://api.github.com/users/maxcountryman/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T16:53:46Z","updated_at":"2016-02-25T16:53:46Z","body":"I ran into this issue as well using `graphviz-2.38.0`.\r\n\r\nIs there a way to manually specify the `viewBox` dimensions?"}}