Forcetalks | Ayan Sarkar | Activity https://www.forcetalks.com/ayan-sarkar/activity/ Activity feed for Ayan Sarkar. Sun, 07 Dec 2025 08:11:04 +0530 https://buddypress.org/?v=2.15.3 en-US 30 hourly 2 aabc42ae73822432183db36c91717410 Ayan Sarkar replied to the discussion How to auto scroll on top of page in Lightning Component in Salesforce using CSS? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-auto-scroll-on-top-of-page-in-lightning-component-in-salesforce-using-css/#post-89661 Fri, 22 Jan 2021 07:54:10 +0530 Reply to How to auto scroll on top of page in Lightning Component in Salesforce using CSS?

To make the scrollTop = 0 to work the container div has to have an internal scroll. Which we can get by either giving a height via px or via vh.

Try that out it should work. I was facing a similar issue while adding LWC inside Flexi Page. The Flexi page has its own scroller but for that, the scrollTop doesn't work. But if we create a…

Read more

]]>
4091ad3284e2e71ed27bf7f2af9b9857 Ayan Sarkar replied to the discussion How to auto scroll on top of page in Lightning Component in Salesforce using CSS? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-auto-scroll-on-top-of-page-in-lightning-component-in-salesforce-using-css/#post-89614 Wed, 20 Jan 2021 07:57:53 +0530 Reply to How to auto scroll on top of page in Lightning Component in Salesforce using CSS?

Check this out.. I have created this and it works perfectly fine for me: https://webcomponents.dev/edit/3vpWJ46hxykfPSACfuNN

]]>