web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Changing height of com...
Power Apps
Unanswered

Changing height of component with a button inside the component

(0) ShareShare
ReportReport
Posted on by 19

Hello,

 

I'm in the progress of doing my first component.

 

Inside the component I have a button and a gallery. When you click the button it should switch the height of the component between two values. I'm planning of using several instances of this component so they have to be controlled individually. 

 

How can I do this?

 

Thanks in advance,

Sebastian

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi  @Maister , 

     

    I've made a test for your reference:
    1\Set button1's OnSelect property to:

    Set(SelfHeight,400)

    2\Set button2's OnSelect property to:

    Set(SelfHeight,800) 

    3\Create a new output property CustomProperty1

    vbofengmsft_5-1713950451564.png

    4\Set it's value to

    SelfHeight
    vbofengmsft_6-1713950467199.png

    5\Set the component's Height property to

    Max(400,Self.CustomProperty1)
    vbofengmsft_7-1713950479011.png
    6\Result
    vbofengmsft_8-1713950500932.pngvbofengmsft_9-1713950508135.png

     

     

    Best Regards,

    Bof

     

  • Maister Profile Picture
    19 on at

    Hi @v-bofeng-msft ,

     

    Thank you! That was all the info I needed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard