iPad whole game screen is stretched upwards

Hello, please help. A stretched image comes out on the iPad. I blame IdealWith and IdealHeight for this. How to fix it ? All values ​​for the location and size of elements are set in percent

Can you make sure the adt width and height are correct?
Is the viewport set correctly in your html header?

Are you talking about IdealWith and IdealHeight? They have values ​​of 960x540

no I’m talking about the advancedDynamicTexture width and height

I don’t set it anywhere at all, the dimensions of the canvas (viewport) are also not set anywhere. Unless in css width and height is 100%

yes but this is my question…can you check if your html page.width === adt.width
and also if your viewport in your html head is set to:

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
1 Like

Thank you, I’m reading about all these parameters now)) Do I understand correctly if you set your parameters for the html head, then this will be relevant html page.width === adt.width ?

correct