Multiple scrollbars when adding custom SPFx webpart
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
There should only be one scrollbar on the page.
Observed Behavior
Sometimes there are two scrollbars when a page contains multiply (custom) SPFx webparts. using Chrome.
Steps to Reproduce
- Create a SPFx webpart. I’ve made a really simple demo here; https://github.com/justdevelopment/SPFxDemo
- Upload the app as you would normally, approving permissions and installing it in the web.
- Add the webpart (HelloWorld) to the page and save/publish.
- Using Chrome reload the page, sometimes there will be two scrollbars; one for the entire page and one for the pagecontainer div. It might take several refreshes to produce the error.

I’m not sure this is the right place for this issue, but so far I’ve only been able to reproduce it by adding custom SPFx webparts to the page. We have some elaborate CSS in our webpart and thought that was the cause, but I can reproduce it with this basic HelloWorld webpart as well. I've tried a few (not all) OOTB webparts and then I can't reproduce it.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues