We're building a SP2010 SP1 site.
For users on Chrome, sometimes the scrollbar doesn't display. The user has to refresh 1-10 times until the scrollbar appears.
Why does Chrome have trouble consistently displaying the scrollbar in SP2010?
|
We're building a SP2010 SP1 site. For users on Chrome, sometimes the scrollbar doesn't display. The user has to refresh 1-10 times until the scrollbar appears. Why does Chrome have trouble consistently displaying the scrollbar in SP2010? |
||||
|
|
|
While it's not an "official" post, the Microsoft blog, along with several other posts does state that Chrome is supported post-SP1, along with IE9 in IE8 standards mode. The addition of Chrome support in Service Pack 1 includes both SharePoint and Office Web Apps. I have seen this issue in both vanilla environments, as well as those with some pretty extreme customization, and it only presents itself when the SharePoint managed scrolling is enabled. I haven't been able to identify a fix, but my (caveat this is my opinion) thoughts are that it stems from the JavaScript that does the screen size calculations to scroll the main content div. If the script fires slightly out of order and grabs the height of the content div before all of the content has loaded, it fails to add the scrollbar since it doesn't think there is enough content to warrant it. I've thought about browser sniffing, and if the user agent shows desktop Chrome, manually calling that script operation a second time to try and validate that's the hang up, but I haven't really had enough time to sit down and troubleshoot it. |
|||||||||
|
|
I've confirmed this link is a solution: http://kyleschaeffer.com/sharepoint/sharepoint-2010-scrolling/ Our scrollbar always works, scripting doesn't break, and we haven't seen any negative side effects! |
|||
|
|
Keep in mind that Chrome is not a supported browser in SharePoint 2010: |
|||||||||||||||||||||
|
|
A simple fix could solve this, check the article on my blog "sharepoint 2010 scrolling issue in chrome" article at http://tad.co.in/?p=693 |
|||||||||
|
|
Here's the only clean solution I found to solve this problem. The KyleSchaeffer solution is not clean and comes with loads of side-effects: http://withinsharepoint.com/archives/256 This code was cleaned from another guy who posted it on github: https://gist.github.com/4224245 . It basically re-executes the function on webkit browsers if it hasn't been executed the first time. It's as clean and accessible as it gets. |
|||
|
|