domContainer scaling

hi, can domContainer, which is created in config, have fittable scaling like a whole scene?

I have something like this, and when I check devtools, i see that dom container does not fit like canvas element

What do you see exactly?

canvas tag:

dom container tag:

and to avoid this, I have to write this junk code

question is that is there something built-in to make domcontainer follow the canvas element with scalemanager

It should do that already.


canvas { margin: 0 auto ; }

I fixed it by clearing transformorigin of domContainer in javascript part. Thank you!