Escobar
October 18, 2019, 11:13am
1
I think that is easier to illustrate with an example (I’m in love with the playground!)
https://www.babylonjs-playground.com/#XCPP9Y#1511
if you resize the viewport notice that the size is ok but it gets separated from the border.
The idea is something like a on-screen TV logo, any tip on this?
Thank you in advance.
Hello!
this is because the image is centered. You can use the Inspector to see where the controls are:
In your case you just want to use fixed size:
https://www.babylonjs-playground.com/#XCPP9Y#1512
Thank you it seems that it is not what I need, I want to use automatic size but always ‘glued’ to the border, maybe I should capture the canvas resize event and modify the logo there.
Thank you for your time anyway!