The first time the playground shows up, no problem, but as soon as we’re clicking on Play button, width is messing up (no matter if we are in latest BJS or 4.2.0)
I believe the reason has to do with some optimizations we are making on the load image. onSVGAttributesComputedObservable is only called on the first instance of launching the website. When you rerun the code segment the file is the is already loaded so the attributes are not computed again and that function is not called. The default to image is 100% by 100% which is why it appears bigger.
I wonder if you have an await when you create a image and then just get the width and height using the auto scale property. Then you can scale it to the size you want. I can try to get a playground to show.
Also interested in a second thought from @RaananW if this is a bug or not. Also is this exclusive to the playground based on how we have the run button.