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 / How to reset vertical ...
Power Apps
Unanswered

How to reset vertical position of a canvas component ?

(0) ShareShare
ReportReport
Posted on by 166

Hi,

 

I've added a canvas component on a screen to let the user scroll up and down in a screen with a "lot" of content.

 

When the user scrolls in the canvas and when I leave and come back to the screen, the scroll position of the canvas stays the same which is quite weird.

 

Is there any way to reset the position to the top of the canvas ?

 

Thanks !

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

    Hi @RemiChambard2 ,

    Do you want to reset the position of a scroll screen?

    Firstly, this feather is still in preview status, which has not been released.

    I believe this feather will soon be released. Let us look forward to it !

    You could check this idea to see this feather's status:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Screen-Reset-Set-Scrollbar-Back-to-Top/idi-p/65933#comments

     

    Secondly, someone has figured out a solution that could reset the position of a scroll screen.

    1)set the scroll screen's OnVisible:

    UpdateContext({resetCan:false})

    2)set the scroll screen's OnHidden:

    UpdateContext({resetCan:true})

    3)set this screen's every datacard's Visible:

    resetCan=false

    Then when you navigate back to this scroll screen, the previous position will not be saved.

    Here's a similar issue for your reference:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Go-to-Top-part-of-screen/td-p/90877

     

     

    Best regards,

  • RemiChambard Profile Picture
    3 on at

    Thanks ! It totally makes the trick !

  • Kellboy2243 Profile Picture
    51 on at

    My Preferred and easiest workaround will be to use the SetFocus function

     

    To achieve this you need to throw a TextInput at the top most part of the scrollable control. Make sure it does not interfere with any important part of the screen by shrinking the height of the TextInput.

     

    Onvisible Property of the screen, Set the following

     

     

    SetFocus(TextInputName)

     

     

    Now when you navigate to that screen, It will set a focus on the TextInput control and scroll back to the top as desired.

     

    Lastly don't forget to change all the visible properties of the TextInput control to transparent including the Hover, Border and Pressed Properties so its not visible.

     

    Hope this helps someone

  • coathangers Profile Picture
    4 on at

    Great workaround, credit to OP

  • gizmo5555 Profile Picture
    23 on at

    So simple, yet so effective. Great idea. Thanks!

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 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard