cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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
Highlighted
Resolver I
Resolver I

Re: Change de height of a gallery with a click

Hey @diegoaff92 

 

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
Highlighted
Resolver I
Resolver I

Re: Change de height of a gallery with a click

Hey @diegoaff92 

 

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

Highlighted
Microsoft
Microsoft

Re: Change de height of a gallery with a click

Hi @diegoaff92 :

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

Highlighted
Helper III
Helper III

Re: Change de height of a gallery with a click

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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,887)