Playground: Babylon.js Playground
Hello,
I’m working on a project where I need to display a world map inside an HolographiSlate for a XR project. However, any Control added to a slate is stretched to fit beyond the new dimensions I assigned to the slate beforehand.
It seems to me BabylonJS stores the initial rect of the slate as a square, and when the slate is resized, the rect is uniformly scaled to match whichever of its width or height is higher, meaning the underlying rect for UI elements stays a square instead of matching the new dimensions.
You can see in the playground how the image’s dimensiosn stays uniform instead of rescaling to fit the slate. Additionally, I would like to disable the scrolling feature on a slate, as I never found any documentation on this.
I’m probably doing something very wrong, but this has been bugging me for a while and I cannot find any resource on this issue. Any help would be welcome.