I am creating an app that revolves around launching a different app, then eventually returning to my app.
The issue I'm having is after the 2nd or 3rd resume, the layout of the page breaks (somehow) and I am left with buttons that don't work and an ugly page.
The first time the user resumes the app it seems to work fine.
This is what the page looks like (this is after the first resume):
And here's what it looks like after 2 or 3 resumes:
I've verified that
OnResume gets called in the main page, and I've tried using
InvalidateMeasure with no success (doing a hot-reload while connected to the debugger fixes the problem)
For the stack, I'm using a
NavigationPage layout and this is the second or third page in. The "popup" is simply a grid that overlays the entire screen with a black background and opacity of 0.8, and then another grid with a white background inside, both horizontal and vertical options are "Center", but no sizing calculations or constraints. Inside that grid is a StackLayout that has the rest of the content in it
I also don't want to specify the size of the background, as it could be a different size image and can look different on different devices/orientations.