question

SSB-7585 avatar image
0 Votes"
SSB-7585 asked JessieZhang-2116 commented

Xamarin Absolute Layout width and height not working properly

Hi,

I'm using the Absolute Layout as per below however in some intermittent occasions the width and height is not working correctly - i can't work out what is causing the issue as this seems to be a random bug.

Simplified:

<AbsoluteLayout> <Grid AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="SizeProportional" > <View /> </Grid> </AbsoluteLayout>
86603-screenshot-2021-04-11-at-105107.png

I've tried it wrapped inside a Grid and also without but no difference - it sill occurs. the problem is intermittent and i can't see what has changed to cause the size to be different.



dotnet-xamarin
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

i can't work out what is causing the issue as this seems to be a random bug.

Hi @SSB-7585 , I did a test but couldn't reproduce the problem. Did you test it on the same phone? Could you please provide us the model and size of the phone ? Is it convenient for you share the full code snippets?
In addition, you can try to update your nuget to the latest version.

0 Votes 0 ·

It is intermittent. I have seen this on an iPhone XS Max running iOS 13.4.1.

is there any way i can check or run some debugging to see what is going on?

0 Votes 0 ·

You can try to get the Diagnostic Information for more details .For how to get Diagnostic Information, you can check: https://docs.microsoft.com/en-us/xamarin/android/troubleshooting/troubleshooting .

0 Votes 0 ·

0 Answers