I have an image object in a gallery and want it to always be middle aligned within the gallery template. How can I configure the Y axis? I have tried taking the Parent.TemplateHeight/2, but that does not even remotely set the setting where it needs to be.
The Y position ends up really far down in the gallery outside of the template height. The Template Height is 85, so TemplateHeight/2 is 42.5, which places the image really far down outside of the template perimeter.
You need to take half the height of the image off the midpoint of the template, so it should be like (TemplateHeight /2) - (image.Height /2)
Hi @pwrappr01 ,
If you want to middle align an image object in a gallery via the Y axis, please take a try with the following workaround:
Set the Y property of the Image control within the Gallery to following:
(Parent.TemplateHeight / 2) - (Image2.Height / 2)
Please consider take a try with above solution, check if the issue is solved.
Check out our new profile badges recognizing authored solutions!
We are excited to announce the Power Apps Super Users!
Did you miss the call? Check out the Power Apps Community Call here.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!