cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Change de height of a gallery with a click

Hi everyone,

 

I have a question, how can I make a dinamic "Height" in a gallery. I have an "Icon" and when i click it the height change from "60" to "450".

 

I tried this formular, but it doesn't work.

 

 

Gallery5.Height = 450

 

 

I'm going to waiting for your comments.

 

Best regards.

1 ACCEPTED SOLUTION

Accepted Solutions
LinkeD365
Advocate V
Advocate V

Hey @Anonymous 

 

You need to use a variable, and set the variable in the button.

 

The Button has an onselect like

 
 

Annotation 2020-06-18 212301.png

 

and the height is set to 

 

Annotation 2020-06-18 212357.png

 

where galleryheight is the variable

If my reply helped, consider marking it as answered. Thanks for your time in sharing your issues and helping the community

View solution in original post

3 REPLIES 3
LinkeD365
Advocate V
Advocate V

Hey @Anonymous 

 

You need to use a variable, and set the variable in the button.

 

The Button has an onselect like

 
 

Annotation 2020-06-18 212301.png

 

and the height is set to 

 

Annotation 2020-06-18 212357.png

 

where galleryheight is the variable

If my reply helped, consider marking it as answered. Thanks for your time in sharing your issues and helping the community

v-bofeng-msft
Community Support
Community Support

Hi @Anonymous :

I strongly agree with @LinkeD365 .Have you tried the solution provided by @LinkeD365 ? 

Has the problem been solved?

Do you still need help?

Best Regards,

Bof

Anonymous
Not applicable

Hi @v-bofeng-msft  and @LinkeD365 

Thank you for you reply, and I'm sorry for answer you really later, yes I tried and it works! Thank you so much.

 

Best regards.

 

Diego Fajardo.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,165)