I realised this issue on Windows browsers, which is weird. I have been developing within Linux environment and did not find this issue. The projection on load gets so big and goes outside the container, but on any slight resize on the browser window, it fits in the correct way.
I have tried triggering the window resize event on load, it doesn't work. Is there a solution for this please?
Fixed issue with still triggering resize event onload or componentDidMount in React. jQuery(window).trigger("resize") do not seem to be working. window.dispatchEvent(new Event('resize')); did it.
I realised this issue on Windows browsers, which is weird. I have been developing within Linux environment and did not find this issue. The projection on load gets so big and goes outside the container, but on any slight resize on the browser window, it fits in the correct way.
I have tried triggering the window
resize
event onload
, it doesn't work. Is there a solution for this please?