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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adjust Container Heigh...
Power Apps
Answered

Adjust Container Height in App with slider

(0) ShareShare
ReportReport
Posted on by 36

Hello, I'm trying to get the height of a container (container2) to change, in app with a slider. Is this possible. Looking to change the height of the container so the horizontal scroll bar for the container remains visible as another container would then come into view from the bottom as the original one get shorter. Hope that makes sense, if I could get this to work in even %25 increments, that would do the trick. This is the formula I tried for the sliders 'on change'  Max(Container2.Height,Slider2.Value)

 

Screenshot 2023-12-14 162925.png

Categories:
  • Verified answer
    AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @Retrotube,

     

    Try doing this:

    Container1 Height property

    Slider1.Value

     

    Container2 Y property

    Container1.Y + Container1.Height

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

     

  • Retrotube Profile Picture
    36 on at

    Worked perfect, thanks!

  • Retrotube Profile Picture
    36 on at

    Others should find these helpful to go along with this question:

    https://powerapps.microsoft.com/en-us/blog/ux-patterns-custom-slider-2/ 

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Can-you-flip-slider-horizontally-within-the-x-axis/td-p/1864947 

    I ended up with this, for a correctly operating vertical scroll bar calculate the gallery min height: Gallery items * (template.Height + Template.Padding)

    Screenshot 2023-12-16 152706.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard