Plane coming outside of canvas div

I have used PLANE & HTML from “react-babylonjs” to display the label over a canvas,
while zooming/panning, the plane is coming out of the canvas, Please find the attachment,
Please help me in restricting this component only within canvas

{
{"Test"}
} Issue:

I think we will need a repro, as I’m not sure to understand the problem. Also, there’s no attachment / link in your message.

The Test is getting displayed outside of the div for canvas.
where the “Test” is displayed using

TEst

I think “Test” is displayed in HTML, not with Babylon GUI? In that case, you may use the “overflow” CSS property of the container div element (the one that contains the canvas + your “test” div).

1 Like