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

(1) ShareShare
ReportReport
Posted on by 272
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
    Michael E. Gernaey 33,251 Super User 2025 Season 1 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,318 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,111 Most Valuable Professional

Leaderboard