Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Wraparound Feature and Collapsing

Like (1) ShareShare
ReportReport
Posted on 9 Sep 2024 14:13:33 by 617
Good morning everyone!
 

Wraparound Feature for Questions – How to implement a wraparound feature so that everyone can view the entire question without any truncation.
 
Collapsing Left Column – How to add a feature to collapse the left column when a Add(+) button is clicked. (Also, then how to go back if someone want to find old record or go to old history.)
 
How can I fix this. Would appreciate insights/solutions.

  • Verified answer
    Michael E. Gernaey Profile Picture
    41,595 Super User 2025 Season 1 on 09 Sep 2024 at 21:44:07
    Wraparound Feature and Collapsing
    Hi
     
    So what you do is something like this.
     
    In the Screen OnVisible (and you could use a context variable im being lazy)
     
    Set(_LeftContainerWidth, 200);
     
    This would be the start of the width of that container, assuming you know what it is, either hard code it or make is an Environment Variable or something else.
     
    Put it in the Width property of your Container on the left.
     
    Then when someone clicks +
    Set(_LeftContainerWidth, 0);
     
    Now its closed
     
    then in your other container change the X property to be
    If(_LeftContainerWidth = 0, 0, _LeftContainerWidth + 5) // so it will either have its X be 0 or X = Width of Left Container + 5 
     
    Then in the Width for your right container
     
    If(_LeftContainerWidth = 0, Parent.Width, ItsNormalWidth);
     
    Now for the controls IN the container do the same thing for X and Width
    If(_LeftContainerWidth = 0, Parent.Width, ItsNormalWidth);
    If(_LeftContainerWidth = 0, 0, _LeftContainerWidth + 5) // and change the 5 to whatever you want for that control
    in their widths.
     
    and Parent.Width, may need to be Template.Width or Screen depending on how you have it.
     
    Now since you said when they click + there must be a Save/Update button
    So, click that and then do
    Set(_LeftContainerWidth, 200) and bingo it all resets.
     
     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,083 Most Valuable Professional

Leaderboard