{"action":"created","issue":{"url":"https://api.github.com/repos/highcharts/highcharts/issues/5783","repository_url":"https://api.github.com/repos/highcharts/highcharts","labels_url":"https://api.github.com/repos/highcharts/highcharts/issues/5783/labels{/name}","comments_url":"https://api.github.com/repos/highcharts/highcharts/issues/5783/comments","events_url":"https://api.github.com/repos/highcharts/highcharts/issues/5783/events","html_url":"https://github.com/highcharts/highcharts/issues/5783","id":181145345,"number":5783,"title":"Highcharts not loading to width of the parent div","user":{"login":"panickerr","id":11805862,"avatar_url":"https://avatars.githubusercontent.com/u/11805862?v=3","gravatar_id":"","url":"https://api.github.com/users/panickerr","html_url":"https://github.com/panickerr","followers_url":"https://api.github.com/users/panickerr/followers","following_url":"https://api.github.com/users/panickerr/following{/other_user}","gists_url":"https://api.github.com/users/panickerr/gists{/gist_id}","starred_url":"https://api.github.com/users/panickerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panickerr/subscriptions","organizations_url":"https://api.github.com/users/panickerr/orgs","repos_url":"https://api.github.com/users/panickerr/repos","events_url":"https://api.github.com/users/panickerr/events{/privacy}","received_events_url":"https://api.github.com/users/panickerr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-05T12:57:16Z","updated_at":"2016-10-05T13:36:38Z","closed_at":null,"body":"#### Expected behaviour\r\n**Chart loads in the same size as the parent.**\r\nHave used  width: 95% and height:75vh to the div in which highchart loads\r\n` <div id=\"g1\" style=\"width: 95% ;height:75vh\"  ></div>  `\r\n\r\n#### Actual behaviour\r\n**Chart always exceeds the parent div onload.**\r\nOn landing on the page the chart when loaded is exceeding the parent div. But when i call the function again it refreshes and fits in the parentdiv. So to make sure it fits in the parent div i am forced to call the function twice while initializing in which case the first call gives a zoomed version of highcharts and the successive second load gives the version that fits in the div. \r\n\r\n#### Live demo with steps to reproduce\r\n<!-- template: jsfiddle.net/highcharts/llexl/ -->\r\n\r\n\r\n#### Affected browser(s)\r\nFirefox, Chrome\r\n"},"comment":{"url":"https://api.github.com/repos/highcharts/highcharts/issues/comments/251676414","html_url":"https://github.com/highcharts/highcharts/issues/5783#issuecomment-251676414","issue_url":"https://api.github.com/repos/highcharts/highcharts/issues/5783","id":251676414,"user":{"login":"pawelfus","id":1453926,"avatar_url":"https://avatars.githubusercontent.com/u/1453926?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelfus","html_url":"https://github.com/pawelfus","followers_url":"https://api.github.com/users/pawelfus/followers","following_url":"https://api.github.com/users/pawelfus/following{/other_user}","gists_url":"https://api.github.com/users/pawelfus/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelfus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelfus/subscriptions","organizations_url":"https://api.github.com/users/pawelfus/orgs","repos_url":"https://api.github.com/users/pawelfus/repos","events_url":"https://api.github.com/users/pawelfus/events{/privacy}","received_events_url":"https://api.github.com/users/pawelfus/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T13:36:37Z","updated_at":"2016-10-05T13:36:37Z","body":"Hi @panickerr \r\n\r\nCould you recreate issue in jsFiddle? I created a simple demo: http://jsfiddle.net/7hq7nwu9/ - looks fine (latest Chrome + OSX). \r\n\r\nThanks!"}}
{"actor":{"display_login":"pawelfus"}}