cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlmeidCaio
Frequent Visitor

Gallery Rows with Gap After Rotation

Hello Guys!



I have a problem here that I don't know how to solve, and if someone could help me, would be really appreciated!



THE PROBLEMI want to exhibit the following gallery on my App:


pic1.jpg

where each row of the Gallery has a Black Rectangle covering the whole row.



So, when I run the App on a Mobile, the screen exhibits the Gallery as follows:


pic2.jpg

which is the expected, since I'm using the current screen configuration:


pic3.jpg

BUT, when I rotate the mobile's screen 90º, the following happens:


pic4.jpg

where a white gap appears between each Row.



QUESTIONWhat I want is to exhibit each row next to each other, without this Gap. Could anybody help me?

 

Thanks! And any help would be appreciated!

10 REPLIES 10
eka24
Super User
Super User

Select the Gallery and Check if the Template Padding is set to zero 0.

 

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

AlmeidCaio
Frequent Visitor

Hello!

It is already zero:
pic5.jpg


Also, the black-retangle's Width and Height are respectively equal to the gallery's TemplateWidth and TemplateHeight.

Any more ideas?

Thanks!

Does anybody have more ideas? @PowerAddict could see if this is another issue that can be flaged?

Thanks!

I am trying to replicate this now. Will keep you updated. 

 

---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

 

Thanks!

Hardit Bhatia

Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

Looking at one of your images, it seems the gallery height and width are set based on some function rather than explicit values, can you please let me know what those expressions are for the gallery's height and width? 

 

---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

 

Thanks!

Hardit Bhatia

Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

So I tested this out. Although I was able to replicate your issue (which is good, gives me something to work with), after screen rotation, when I scrolled my gallery once, it seemed to work after that. I will try to see if I can get rid of the white space without scrolling but wanted to check with you if this was what you were seeing as well. 

 

I am attaching a GIF that shows this behavior. Let me know if your gallery's behavior is consistent. 

 

GalleryRotation1.gif

Sorry for the fast frame rate, I had to do that to reduce the file size. 

 

---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

 

Thanks!

Hardit Bhatia

Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

Yes! When there's more items in the gallery, it gets fixed after scrolling down.

Thanks for the help again!

Awesome! Will check if something can be done to make it work without having to scroll.

If not, will definitely raise it as a bug. Thanks a lot for tagging me and introducing me to this awesome use case!

Thanks,
Hardit Bhatia

I'll be waiting eagerly for your solution!

 

Thank you very much!

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,234)